Expand description
Tree-sitter based syntax highlighting.
When one of the syntax-* features is enabled, highlight_code uses
tree-sitter grammars for accurate, language-aware highlighting.
Without those features the function always returns None so callers
can fall back to the built-in keyword highlighter.
Functionsยง
- highlight_
code - Highlight source code using tree-sitter.
- is_
language_ supported - Returns
trueif tree-sitter highlighting is available forlang.