alexgorbatchev/SyntaxHighlighter — pull request #82 by outis (2012-01-23 09:12:29+00:00)
Title: Expanded features relating to finding elements for highlighting.

I've got two new features, if you're interested.

The first allows SyntaxHighlighter to find multiple element types. Instead of a single tag name, the `tagName` configuration option can be an array of tag names, in which case `findElements` gets all the named elements. I left the config option singular so as not to affect sites that customize it. The default `tagName` option is updated to include `` elements so developers can write more semantic documents yet still get highlighting in JS enabled browsers, all without impacting existing sites that use SyntaxHighlighter.

The second expands `findElements` to accept DOM nodes, tag names or an array of both as its `element` parameter. This way, a developer can specify multiple elements to highlight in a single call to `highlight`.

var someElt = document.getElementById('Foo');
SyntaxHighlighter.highlight({}, ['pre', 'code', someElt]);

Do these updates interest you? Do they need any other work before they can be merged into the main repo?