Enscript
From DreamHost
GNU Enscript converts ASCII files to PostScript and stores generated output to a file or sends it directly to the printer. It includes features for "pretty-printing" (language sensitive code highlighting) in several programming languages.
It supports ten different input encodings, Adobe Font Metrics files, and user defined fancy headers. AFM files for the most common PostScript fonts are included in the distribution; the program itself can download PostScript fonts. Other features include language sensitive highlighting, N-up printing, inlined EPS images, comments, and the ability to change body color and font on the fly.
You might want, or even need, to use enscript. For example, you might want to use ViewVC and you want syntax highlighting of code that you check in to a repository that ViewVC can see. Enscript isn't currently (as of 23-Jan-07) installed by default (on amp.dreamhost.com, anyway) but you can install it within your home directory.
Download the package
mkdir -pv ${HOME}/soft
cd ${HOME}/soft
wget http://www.iki.fi/mtr/genscript/enscript-1.6.4.tar.gz
tar xvzf enscript-1.6.4.tar.gz
cd enscript-1.6.4
Choose an installation destination
If you use the Unix account setup you have already a ${RUN} environment variable set up (in .bashrc) and you install everything there.
If you install packages directly in your home directory (${HOME}), then type:
export RUN=${HOME}
If you install packages in other directory of your choice (e.g. packages directly under your home directory -${HOME}), then type:
export RUN=${HOME}/packages
(replace packages above by the directory name you want).
Configure, compile and install
./configure --prefix=${RUN}
make
make install

