by jrockway · 15y ago · 0 comments
My advice is to use Emacs or Vim to do your syntax highlighting. They highlight well enough to please people actually doing work, and when people get annoyed with the rules, they fix them.
http://search.cpan.org/~geoffr/Text-VimColor-0.11/lib/Text/V...
http://search.cpan.org/~jrockway/Text-EmacsColor-0.03/lib/Te...
You're probably talking about a hoard of simplistic regexp parsers. Highlight.js is not one of them, it's a proper context-aware parser.