Code beautification and/or printing utilities that are not part of an editor

Philip Hallstrom freebsd at philip.pjkh.com
Thu Apr 19 21:45:19 UTC 2007


> Another question for everyone.  Are there any programs, hopefully
> available in the ports, that one can use to print source code files to
> a printer (or create as a postscript file)?
>
> I'd like something that I can feed a C++ program, have it parse
> through the code, print line numbers to the left of the page and
> (optionally) color code the syntax.  Does anything like this exist?
>
> If it's something as simple as a string of chained command line aps,
> hey, that's fine.  Please someone point me in the correct direction.

I seem to remember using enscript to do this at one point... not sure 
about the color coding, but the rest it will do I think... even cruch 2/4 
pages onto one sheet which is nice sometimes.

http://www.codento.com/people/mtr/genscript/

-philip


More information about the freebsd-questions mailing list