3 ms·
Looks nice. Are there any TreeSitter grammar based code highlighters too?
by satvikpendem 4y ago
Looks nice. Are there any TreeSitter grammar based code highlighters too?
- fiddlerwoaroof 4y agohtmlize.el if you use tree-sitter based syntax highlighting in emacs. I’ve written one myself, it’s pretty simple to walk a tree-sitter parse tree and generate spans with classes based on the type of each node. Then syntax highlighting is “just” a matter of writing a bit of CSS.