example-html-highlight-macro

Crates.ioexample-html-highlight-macro
lib.rsexample-html-highlight-macro
version0.1.1
created_at2024-12-02 14:20:48.312429+00
updated_at2025-07-26 10:46:36.578002+00
descriptionmacro for embedding syntax highlighted copies of code in the binary
homepagehttps://github.com/JedimEmO/dwind
repositoryhttps://github.com/JedimEmO/dwind
max_upload_size
id1468722
size19,727
Mathias Myrland (JedimEmO)

documentation

README

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!")
    })
}
Commit count: 137

cargo fmt