public CodeHighlighter(keywords as ArrayList<String> = [], lineCommentToken as String = "", caseInsensitiveKeywords as Boolean = false)
Creates a CodeHighlighter with the given keyword list and line comment delimiter.
| Parameter | Description |
|---|---|
keywords | Keywords to highlight. |
lineCommentToken | Line comment prefix (such as "//" or "#"). |
caseInsensitiveKeywords | true when keyword matching is ASCII case-insensitive. |
import klyn.code.highlighters highlighter = CodeHighlighter(["select", "from"], "--", true)