Peter Leonov's Blog

Highlighting hardcode JavaScript

28 January 2010

Finally, finished the full JavaScript syntax highlighter. There already was a simple JavaScript support in highlighter.js. But I desired a full TextMate level support with the exact same coloring. And now, based on sunburst color theme here it is:


To be able to correctly parse regular expressions distinguishing them (in Russian) from comments and dividing operators the Highlighter got patched.

If you as me desire this coloring too then quickly grab the syntaxmodule javascript-tm.js and patched highlight.js.

  • frontend
  • javascript
  • highlight