HTML: Source code highlighting
Stephan Spies (contact me)
This class can be used to highlight source code in several languages, as well some other text formats.
It can highlight text strings or files. It generates XHTML as highlighted output.
Currently it supports the following languages and text formats: C++, CSS, DIFF, DTD, HTML, Java, JavaScript, MySQL, Perl, PHP, Python, Ruby, SQL and XML.
The class requires PEAR Text_Highlighter.
Click here for detailed information about this class on phpclasses.org