dojox/highlight/_base (version 1.10)

Summary

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.

Property Summary

Method Summary

  • Code(props,node) A class object to allow for dojoType usage with the highlight engine.

Properties

constants
Defined by: dojox/highlight/_base
languages
Defined by: dojox/highlight/_base

Methods

Code(props,node)

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 dojo.parser to instantiate this class as other Widgets would be.

node String | DomNode

A String ID or DomNode reference to use as the root node of this instance.

Examples

Example 1

<pre><code dojoType="dojox.highlight.Code">for(var i in obj){ ... }</code></pre>

Example 2

var inst = new dojox.highlight.Code({}, "someId");
Error in the documentation? Can’t find what you are looking for? Let us know!