Ahnfelt / CodeHighlighter (http://highlighter.ahnfelt.dk/)

A source code highlighter for multiple languages. It's written in Haxe but also comes in JavaScript and PHP versions. Each language definition is about 10-20 regular expressions, and there is plenty of opportunity for reuse. Embedded languages such as PHP/JS/CSS in HTML are easy to add (and these particular examples are in the standard download).

Clone this repository (size: 312.0 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/Ahnfelt/codehighlighter/
commit 5: d3a795ac9df3
parent 4: 3725ce691fb8
Improved nesting capabilities (added a null stop-rule) defaulttip
Joakim Ahnfelt-Rønne / Ahnfelt
10 months ago
View at rev
CodeHighlighter /
filename size last modified message
etc  
CodeHighlighter.hx 26.5 KB 10 months ago Improved nesting capabilities (added a null stop-rule)
README.txt 240 B 14 months ago Using Mercurial instead of SVN
etc.zip 52.7 KB 10 months ago Improved nesting capabilities (added a null stop-rule)
prepare.sh 83 B 11 months ago Some Python support.
upload.sh 180 B 11 months ago Automated FTP upload.

README

1
2
3
4
5
CodeHighlighter.hx is the actual highlighter. 

I have included the built PHP and JS in etc.zip, so the newest build is always available (because I'm too lazy to upload it separatly every time).

The rest are build scripts and test files.