classafFandoc::SyntaxProcessor
sys::Obj afFandoc::SyntaxProcessor : afFandoc::PreProcessor
A PreProcessor
that provides syntax highlighting for code blocks.
Not available in Javascript.
- aliases
Str:Str aliases := [Str:Str]["fantom":"fan"]
Syntax aliases.
- cssClasses
SyntaxType:Str? cssClasses := ...
CSS classes to be rendered with the syntax tags.
- htmlTags
SyntaxType:Str? htmlTags := ...
HTML tags to render for each syntax type.
- loadSyntax
virtual SyntaxRules? loadSyntax(Str ext)
- renderLineIds
Bool renderLineIds
- writeSyntax
HtmlElem writeSyntax(Str extension, Str cssClasses, Str text)