code_str!() { /* proc-macro */ }Available on crate feature
macro only.Expand description
Compile-time syntax highlighting of an inline source string.
Parses a string literal containing source code with [arborium] and
expands to the resulting span tree. Pass the source as a string literal,
concat!(...), include_str!(...), or env!(...). The language must be
supplied via CodeOptions::builder with CodeOptions::with_language
since there is no file extension to infer from.
To highlight a file on disk instead, use code!.