Code syntax highlighting library written in PHP.
APACHE-2.0 License
Nijikodo is an object oriented code syntax highlighting library written in PHP.
Current supported languages include CSS, HTML, JavaScript, and PHP. The generic regex patterns work for other languages as well.
For usage examples see demo.php.
http://www.craigiam.com/nijikodo
Some of the generic regex patterns are based on this post by Dominic Szablewski: http://www.phoboslab.org/log/2007/08/generic-syntax-highlighting-with-regular-expressions