I really like enscript. I found this page to have a few really neat bits of info. http://www.lowlevelmanager.com/2009/07/pretty-printing-perl-with-enscript.htmlUltimately, however, for my needs I think I am going to go with the latex listings package.http://en.wikibooks.org/wiki/LaTeX/Source_Code_ListingsMany of the options are very similar to enscript but, obviously, getting the output incorporated consistently into a larger body of latex is easier. > On Fri, May 10, 2013 at 09:14:25PM -0400, Adam Russell wrote: > > I am trying to make Perl code look good in print. > > I have tried perltidy and it doesn't really seem to do the simple thing > > that I want. > > I guess I just want to "pretty print" more than completely reformat the > > code in ways other than I originally wrote it. That is, I don't care about > > if there is a space between operators and things like that...I just want > > long lines to wrap in a way that looks good in print or at least get some > > warning that line X is too long to fit on a page of any given size > > (assuming some default of letter or A4). Maybe some other niceties I > > haven't thought of? > > Anyone have any suggestions or comments? How do authors of Perl books > > handle this? > > I just tried a2ps and it produces decent looking output on an old script of > mine. > It looks like there are a few knobs to turn. > > a2ps -o file.ps -Eperl file.pl > > Other programs to look at: > > enscript > Source-highlight > trueprint > lgrind > > > I, for one, would be interested in finding out what you discover/decide on for > future reference. > > -Gyepi
_______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

