html.syntax.class
Parameters
- $node
The source element whose content will be syntax highlighted.
This template calls html.syntax.class.mode on $node. If the result of that mode is a suitable language identifier, it outputs appropriate CSS class names to enable syntax highlighting. The output should be placed in the class attribute of a pre or similar output element by the calling template.
Importing stylesheets should implement html.syntax.class.mode for any source elements that may be syntax highlighted, then call this template when building the class attribute for output elements.