html.css.syntax
Parameters
- $node
The node to create CSS for.
- $direction
The directionality of the text, either ltr or rtl.
- $left
The starting alignment, either left or right.
- $right
The ending alignment, either left or right.
This template outputs CSS to support syntax highlighting of code blocks. Syntax highlighting is done at document load time with JavaScript. Text in code blocks is broken up into chunks and wrapped in HTML elements with particular classes. This template outputs CSS to match those elements and style them with the built-in themeable colors from color.
All parameters can be automatically computed if not provided.