Skip to main content

text

Macro text 

Source
macro_rules! text {
    ($content:expr, $color:ident, bold) => { ... };
    ($content:expr, $color:ident, italic) => { ... };
    ($content:expr, red) => { ... };
    ($content:expr, green) => { ... };
    ($content:expr, yellow) => { ... };
    ($content:expr, cyan) => { ... };
    ($content:expr, $color:ident) => { ... };
    ($content:expr) => { ... };
}
Expand description

Create text with common styling

§Examples

use revue::prelude::*;

let t = text!("Hello");
let t = text!("Error!", red);
let t = text!("Success", green, bold);