Typesetting Computer Languages: the listings Package
I strongly recommand using the
listings.
Learning the user interface requires a little effort, but it is worth
it.
HEVEA features a quite compatible implementation, please refer to
the original package documentation.
Do not hesitate to report discrepancies.
Note that HEVEA does not produce very compact
HTML in case you use this package.
This can be cured, at some price in runtime cost, by
giving hevea the command line option ``-O''
(see Section C.1.1.4).