Macro color_print::cformat

source ·
cformat!() { /* proc-macro */ }
Expand description

The same as format!(), but parses color tags.

§Example
let s: String = cformat!("A <g>green</> word, {}", "placeholders are allowed");
assert_eq!(s, "A \u{1b}[32mgreen\u{1b}[39m word, placeholders are allowed");