Syntax highlighting with language auto-detection package
Syntax highlighting with language auto-detection package. Released under CLA by the Dojo Toolkit, original BSD release available from: http://softwaremaniacs.org/soft/highlight/
See the dojox/highlight/_base reference documentation for more information.
A class object to allow for dojoType usage with the highlight engine. This is
NOT a Widget in the conventional sense, and does not have any member functions for
the instance. This is provided as a convenience. You likely should be calling
dojox.highlight.init
directly.
Parameter | Type | Description |
---|---|---|
props | Object |
Optional Unused. Pass 'null' or {}. Positional usage to allow |
node | String | DomNode | A String ID or DomNode reference to use as the root node of this instance. |
<pre><code dojoType="dojox.highlight.Code">for(var i in obj){ ... }</code></pre>
var inst = new dojox.highlight.Code({}, "someId");