andris9/highlight — pull request #6 by coolaj86 (2012-01-21 03:52:06+00:00)
Title: Can now load select languages (rather than all)

* did not break current api
* added tests for js, xml, nothing, and all
* specifying nothing loads all
* specifying [] loads nothing (for testing)
* specifying just 'javascript' or just 'xml'

It appeared that XML wasn't working previously. I updated to the latest and corrected it so that it does work.

I removed `html-xml`. It wasn't being loaded anyway and appears to be superseded by the latest `xml`.

By loading just `['bash', 'javascript', 'xml']` the degree of accuracy will be higher. The previous implementation made the syntax highlighting more likely to load the incorrect file - I think it detected strict mode javascript as lisp or something.