matze / tree-painter

tree-sitter based syntax highlighting HTML rendering
MIT License
17 stars 3 forks source link

Format agnostic output #4

Open epage opened 1 year ago

epage commented 1 year ago

A key syntect feature for me is that it has an intermediate representation and I can render to other mediums, like the command line.

matze commented 1 year ago

I suppose you are looking for tree-sitter-highlight instead which does pretty much that although not using an intermediate representation but event callbacks.

epage commented 1 year ago

Thats a bit lower level, requiring marking highlight names. The advantage of this crate and syntect is the theme integration so I just need to worry about adapting to my output medium.

matze commented 1 year ago

Makes sense, yes. I will think about it during the weekend.