classafFandoc::SyntaxProcessor

sys::Obj
  afFandoc::SyntaxProcessor : afFandoc::PreProcessor

A PreProcessor that provides syntax highlighting for code blocks.

Not available in Javascript.

aliases

Source

Str:Str aliases := [Str:Str]["fantom":"fan"]

Syntax aliases.

cssClasses

Source

SyntaxType:Str? cssClasses := ...

CSS classes to be rendered with the syntax tags.

htmlTags

Source

SyntaxType:Str? htmlTags := ...

HTML tags to render for each syntax type.

loadSyntax

Source

virtual SyntaxRules? loadSyntax(Str ext)

renderLineIds

Source

Bool renderLineIds

writeSyntax

Source

HtmlElem writeSyntax(Str extension, Str cssClasses, Str text)