Switch to treesitter or linguist for syntax highlighting?
Opened this issue · 0 comments
SethTisue commented
We've been using Rouge to syntax-highlight our Scala snippets for many many years now, dating back to (iirc) even before the existence of Scala 3
But Rouge seems to lack full support for Scala 3 at present, as per rouge-ruby/rouge#1885
an alternative highlighter, Pygments, does have some Scala 3 support, as per pygments/pygments#1694 , but probably it's fallen a bit out of date
and there are also other highlighters out there, for example:
- https://github.com/scala/vscode-scala-syntax via Linguist (which is what GitHub uses to highlight Scala)
- https://github.com/tree-sitter/tree-sitter-scala
It would be nice not to have to maintain so many different highlighters. Perhaps we could switch to Linguist or Treesitter for our websites.