in reply to RE: Re: how to indent/pretty print perl code
in thread how to indent/pretty print perl code

Yup, you are right about cperl mode. It's just that I don't know a better replacement. In my experience, nearly all modes for Perl break on complicated constructs (this is BTW a good incentive to keep your Perl readable).

If you can find out where this "pretty-print" option comes from, it should not be hard to automate it, too - I will be glad to help (though I don't use xemacs, but GNU emacs, and pretty-print is not there in my emacs :-( ... might be the incentive to go for xemacs?).

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com

  • Comment on RE: RE: Re: how to indent/pretty print perl code

Replies are listed 'Best First'.
RE: RE: RE: Re: how to indent/pretty print perl code
by ZZamboni (Curate) on Nov 03, 2000 at 18:35 UTC
    I think the package is ps-print.el (I'm from a remote terminal right now, so I can't check thoroughly), and it says it belongs to GNU Emacs, so I would assume it is present there too. When I read the file I assumed it would only work from interactive mode because it says it needs a font-lock package. But if you figure out how to make it work from batch mode, please let me know :-)

    --ZZamboni