isagalaev/highlight.js — pull request #97 by mfornos (2012-06-13 22:10:14+00:00)
Title: Support for Clojure with rainbow parenthesis

Hello,
to support parenthesis coloring by nesting level I added the (non disruptive) possibility to pass a callback function as the className of modes that is triggered by a boolean. This is the modification:

```
function startNewMode(mode, lexem) {
var markup = mode.className? '': '';
...
```
You can see clojure.js for an example of use.

I added also a style named 'rainbow' to exploit the new class selectors with nesting info. Tests are included and language auto-detection is preserved.

Thank you