feat: add pretty print
This commit is contained in:
12
__term/prettyprint/src/main.rs
Normal file
12
__term/prettyprint/src/main.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use prettyprint::{PrettyPrintError, PrettyPrinter};
|
||||
|
||||
fn main() -> Result<(), PrettyPrintError> {
|
||||
let theme = include_bytes!("../assets/themes.bin");
|
||||
|
||||
let print = PrettyPrinter::default()
|
||||
.language("rust")
|
||||
.load_theme(theme.to_vec())
|
||||
.build()?;
|
||||
|
||||
print.string(include_str!("main.rs"))
|
||||
}
|
||||
Reference in New Issue
Block a user