coloredln

Macro coloredln 

Source
macro_rules! coloredln {
    () => { ... };
    ($top:tt) => { ... };
    ($top:tt, $($arg:tt)*) => { ... };
}
Expand description

Print colored text to standard output with newline at the end.

With nothing given does nothing.
Otherwise format given parameters using format! macro, apply colored(), then println! to standard output.

ยงExamples

Basic usage:

use colored_str::coloredln;
 
coloredln!("<red>this is red text</red>");
coloredln!("<red>this is {} text</red>", "red");

See crate for other examples