treelight

Version Downloads License Docs crev reviews

A syntax highlighter for the web using tree-sitter.

```rust use treelight::*;

let code = r#" use thiserror::Error;

[derive(Error, Debug)]

pub enum ResponseError { #[error("api error {0}")] ApiError(#[from] PaypalError), #[error("http error {0}")] HttpError(#[from] reqwest::Error) } "#;

let result = highlighttohtml(Language::Rust, code); println!("{}", result); ```

License: MIT