1 unstable release

0.0.0 Dec 1, 2022

#129 in #spans

MPL-2.0 license

110KB
337 lines

Dye-ware Highlighter

Add additional information to your code spans.

fn main() {
    use code_view::ColorView;
    let mut view = ColorView::from("public static class G {}");
    view.dye_offset(0, 6, "keyword");
    view.dye_offset(7, 13, "keyword");
}

Dependencies

~4–6MB
~105K SLoC