Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2007 14:25:15 -0700 (PDT)
From:      Philip Hallstrom <freebsd@philip.pjkh.com>
To:        Andrew Falanga <af300wsm@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Code beautification and/or printing utilities that are not part of an editor
Message-ID:  <20070419142430.U70266@bravo.pjkh.com>
In-Reply-To: <340a29540704191410l1d45f0c4w9af97f8ec324f405@mail.gmail.com>
References:  <340a29540704191410l1d45f0c4w9af97f8ec324f405@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070419142430.U70266>