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

Tom Evans at
Fri Apr 20 09:23:17 UTC 2007

On Thu, 2007-04-19 at 15:10 -0600, Andrew Falanga wrote:
> 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.
> Andy
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

Assuming you can print with lpr(1):

vim "+syntax enable" "+number" "+hardcopy"

I'd put "syntax enable" in your ~/.vimrc , and the other attrs can be
shortened to:

vim "+nu" "+ha"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url :

More information about the freebsd-questions mailing list