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:
- if match found for
file.ext
, then it takes precedence - if the first line has shebang, then we attempt to match as "#!/bin/ext" or "#!/bin/env ext"
- use default rules
- if match found for
- fontSource
-
const Font font := Font.sysMonospace
- highlightCurLineSource
-
const Color highlightCurLine := Color(15790320)
- keywordSource
-
const RichTextStyle keyword := ...
- literalSource
-
const RichTextStyle literal := ...
-
static internal SyntaxOptions load()
- textSource
-
const RichTextStyle text := ...