#html #highlight #syntax-highlighting #graphics

highlight-ez

Easy Syntax Highlighting with HTML output

7 releases

0.2.6 May 1, 2024
0.2.5 May 1, 2024
0.2.3 Apr 25, 2024

#403 in Graphics APIs

Download history 1/week @ 2024-05-16 2/week @ 2024-05-23 4/week @ 2024-06-27 16/week @ 2024-07-04

348 downloads per month

MIT-0 license

20KB
425 lines

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);

lib.rs:

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);

Dependencies

~22–39MB
~649K SLoC