example-html-highlight-macro 0.1.0

macro for embedding syntax highlighted copies of code in the binary
Documentation

example-html-highlight-macro

This crate provides a macro to embed highlighted HTML versions of your tagged code into your binary. Useful for providing in-browser highlighted code examples that doesn't run stale!

Usage

#[example_html(themes = ["base16-ocean.dark"])]
fn variants() -> Dom {
    html!("div", {
        .text("Hello, world!")
    })
}