Arborium - Batteries-included tree-sitter grammar collection
This crate provides:
- Re-exports of individual grammar crates via feature flags
- HTML rendering for syntax highlighting
- WASM support with custom allocator (automatically enabled on WASM targets)
Usage
Enable the languages you need via feature flags:
[]
= { = "0.1", = ["lang-rust", "lang-python"] }
Or enable all languages:
[]
= { = "0.1", = ["all-languages"] }
Example
use Highlighter;
let mut highlighter = new;
let html = highlighter.highlight_to_html?;