Fantom

 

const class

fluxText::SyntaxOptions

sys::Obj
  fluxText::SyntaxOptions

@serializable

SyntaxOptions configures the syntax color coding.

Slots

bracketSource

const RichTextStyle bracket := ...

bracketMatchSource

const RichTextStyle bracketMatch := ...

commentSource

const RichTextStyle comment := ...

extToRulesSource

const Str:Str extToRules := ["fan":"fan"]

Map of file extension to rule names. The rule name should map to a SyntaxRules file called "syntax/syntax-{name}.fog". Extensions are matched to rules as follows:

  1. if match found for file.ext, then it takes precedence
  2. if the first line has shebang, then we attempt to match as "#!/bin/ext" or "#!/bin/env ext"
  3. use default rules
fontSource

const Font font := Desktop.sysFontMonospace

highlightCurLineSource

const Color highlightCurLine := Color(15790320)

keywordSource

const RichTextStyle keyword := ...

literalSource

const RichTextStyle literal := ...

makeSource

new make(|SyntaxOptions|? f := null)

Default constructor with it-block

textSource

const RichTextStyle text := ...