home / samples / Syntax Highlighting
Regex-based tokenizer with incremental state caching.
BuffeeSyntax(editor)
editor.Syntax.setLanguage('javascript')
editor.Syntax.enabled = true
Shows the tokenizer state at the start of each visible line (0 = normal, 1+ = special states like multiline comment/string)