highlight-ez

Crates.iohighlight-ez
lib.rshighlight-ez
version0.2.6
sourcesrc
created_at2024-04-12 17:09:53.650536
updated_at2024-05-01 20:17:19.343894
descriptionEasy Syntax Highlighting with HTML output
homepage
repositoryhttps://github.com/Mordanis/highlight-ez
max_upload_size
id1206523
size20,611
John Van Dyke (Mordanis)

documentation

README

Create HTML renderings of code with highlighting using tree-sitter

The general workflow of this is to simplify the workflow of creating pretty html code blocks using tree-sitter.

let my_pyblock = r#"def fib(a):
    if a = 1:
        return 1
    else:
        return fib(a - 1)"#;
let lang = TargetLanguage::Python;
let html = render_html(my_pyblock, lang);
Commit count: 12

cargo fmt