| Crates.io | example-html-highlight-macro |
| lib.rs | example-html-highlight-macro |
| version | 0.1.1 |
| created_at | 2024-12-02 14:20:48.312429+00 |
| updated_at | 2025-07-26 10:46:36.578002+00 |
| description | macro for embedding syntax highlighted copies of code in the binary |
| homepage | https://github.com/JedimEmO/dwind |
| repository | https://github.com/JedimEmO/dwind |
| max_upload_size | |
| id | 1468722 |
| size | 19,727 |
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!
#[example_html(themes = ["base16-ocean.dark"])]
fn variants() -> Dom {
html!("div", {
.text("Hello, world!")
})
}