in reply to Re: how to indent/pretty print perl code
in thread how to indent/pretty print perl code
Just for the sake of completeness, be aware that cperl sometimes breaks with funky perl code such as regexes, here documents, unusual quoting and things like that. But other than that it's an excellent way of doing it.
For printing Perl code, I usually use xemacs' "pretty-print" option, which is loaded with some package I can't remember right now. I don't know how to invoke it in batch mode though - you have to manually load the file and select the option from the menu. Pretty-print generates postscript according to your current font-lock settings, so you get colors (shading in a b/w printer), bold, etc.
--ZZamboni
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: how to indent/pretty print perl code
by clemburg (Curate) on Nov 02, 2000 at 21:30 UTC | |
by ZZamboni (Curate) on Nov 03, 2000 at 18:35 UTC |