nijikodo
nijikodo copied to clipboard
Code syntax highlighting library written in PHP.
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