keynmol / scala-treesitter-highlighting

Scala code highlighting using Tree Sitter grammar compiled to WASM

Home Page:https://keynmol.github.io/scala-treesitter-highlighting/

Repository from Github https://github.comkeynmol/scala-treesitter-highlightingRepository from Github https://github.comkeynmol/scala-treesitter-highlighting

In-browser syntax highlighting for Scala using Tree Sitter

Live version

This WIP project is a space for exploring the usage of Tree Sitter for in-browser syntax highlighting, made possible by web-tree-sitter bindings, and the ability to compile Tree Sitter Scala parser to WASM.

CleanShot 2024-05-26 at 11 21 56

Contributing

  1. Make sure you have Scala CLI installed
  2. Run npm install
  3. Run npm watch
  4. Happy hacking! Your project will reload automatically as you make changes to index.scala or any other files

About

Scala code highlighting using Tree Sitter grammar compiled to WASM

https://keynmol.github.io/scala-treesitter-highlighting/

License:MIT License


Languages

Language:Scala 97.1%Language:C 2.5%Language:HTML 0.2%Language:JavaScript 0.2%Language:CSS 0.0%