Package-level declarations
Types
A highlighter defines a mapping from highlighting tags to style strings.
Highlighting tags are markers that denote a highlighting category. They are associated with parts of a syntax tree by a language mode, and then mapped to an actual style by a Highlighter.
Properties
A pre-built Highlighter that maps highlighting tags to tok-* CSS class names.
The NodeProp that stores highlight rules on node types.
Functions
Match a syntax node's highlight rules. If there's a match, return its set of tags, and whether it is opaque or inheriting.
Highlight the given code string using the provided tree and highlighter, calling putText for each piece of text with its CSS classes, and putBreak at line breaks.
Highlight the given tree with the given highlighter(s), calling putStyle for each styled range.
Define a Highlighter from an array of tag/class pairs.