add the library through writing in the command prompt:
cargo add inline_colorization
And in you main.rs file:
use inline_colorization::*;
Then you can run:
println!("Lets the user {color_red}colorize{color_reset} the and {style_underline}style the output{style_reset} text using inline variables");
| Text Style Variables |
|----------------------|
| stylebold |
| styleunderline |
| style_reset |
| Text Color Variables | |----------------------| | colorblack | | colorred | | colorgreen | | coloryellow | | colorblue | | colormagenta | | colorcyan | | colorwhite | | color_reset |
| Text Background Variables | |---------------------------| | bgblack | | bgred | | bggreen | | bgyellow | | bgblue | | bgmagenta | | bgcyan | | bgwhite | | bg_reset |
Just remember to reset the style, color or background when you want the default text setting