[texhax] Presenting Programming Code

Uwe Lueck uwe.lueck at web.de
Wed Jun 4 18:05:55 CEST 2008


PR Stanley <prstanley at ntlworld.com> wrote 04.06.2008 15:59:24:
> Could the list recommend a nice clean way of including programming 
> code - e.g. C, C++, PHP etc. - in a Latex document with all the 
> indentations kept intact?

If you have found many alternatives and you are asking for which is best, 
I can't help. Otherwise you could have a look at the Topic version of the TeX Catalogue:

    http://ctan.tug.org/tex-archive/help/Catalogue/bytopic.html#cs

or enter "literate programming" or "listings" in the third field ("package informations") of

    http://ctan.tug.org/search.html

listings and highlight may be most renowned and useful, according to what I have seen 
in studying certain parts of CTAN recently, but I have never used such a package myself. 

HTH -- Uwe

"Zsolt Udvari" <udvzsolt at gmail.com> wrote 04.06.2008 16:36:05:
> Or maybe you can use highlight. This program can colorize the
> keywords, strings, etc.
> http://www.andre-simon.de/



More information about the texhax mailing list