Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pornel
· 11mo ago · 0 comments
There's also a pure-Rust implementation of a syntax highlighter, which uses TextMate/SublimeText grammars:
https://lib.rs/syntect
Comments
[–]
zeon256
11mo ago
Tree-sitter produces more accurate highlighting tho. We used syntect for our web editing cos it’s faster (and lighter in terms of size) and tree-sitter for rendered pages in our company and the difference is stark