An open API service indexing awesome lists of open source software.

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

Scala code highlighting using Tree Sitter grammar compiled to WASM
https://github.com/keynmol/scala-treesitter-highlighting

scala scalajs treesitter vite wasm

Last synced: about 1 year ago
JSON representation

Scala code highlighting using Tree Sitter grammar compiled to WASM

Awesome Lists containing this project

README

          

# In-browser syntax highlighting for Scala using Tree Sitter

[**Live version**](https://keynmol.github.io/scala-treesitter-highlighting/)

ade possible by [web-tree-sitter](https://www.npmjs.com/package/web-tree-sitter?activeTab=readme) bindings, and the ability to compile Tree Sitter Scala parser to WASM.

![CleanShot 2025-04-03 at 14 33 07@2x](https://github.com/user-attachments/assets/e82f19cf-c714-4116-9ddd-f6b0e1f195df)

## 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](./index.scala) or any other files