This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
Releases: mre/prettyprint
Releases · mre/prettyprint
Version 0.8.1
Version 0.8.0
Supports loading custom syntaxsets and themesets by updating syntect to 4.1.0. (See #24)
Version 0.7.1
Updated dependencies thanks to @botika.
Version 0.7.0
This release adds support for reconfiguring an existing prettyprinter like so:
//! Run
//! ```
//! cargo run --example dynamic-config
//! ```
use prettyprint::{PrettyPrintError, PrettyPrinter};
fn main() -> Result<(), PrettyPrintError> {
let print = PrettyPrinter::default()
.language("rust")
.grid(false)
.line_numbers(false)
.build()
.unwrap();
print.string("fn main() {")?;
for x in 0..9 {
let printer = print.configure().grid(true).build().unwrap();
printer.string(format!("let x = {};", x))?;
}
print.string("}")
}
Version 0.6.0
Version 0.5.0
- Add support for printing inside loops and closures. Thanks to @DrSensor.
Version 0.4.0
- Add support for listing supported themes.
Version 0.3.0
Makes the PrettyPrint
struct public, which fixes the documentation. Thanks to @mitsuhiko (#3).