diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 28 |
1 files changed, 13 insertions, 15 deletions
@@ -1,14 +1,15 @@ -/// `bat` is a library to print syntax highlighted content. -/// -/// ``` -/// use bat::PrettyPrinter; -/// -/// PrettyPrinter::new() -/// .input_from_bytes(b"<span style=\"color: #ff00cc\">Hello world!</span>\n") -/// .language("html") -/// .run() -/// .expect("no errors"); -/// ``` +//! `bat` is a library to print syntax highlighted content. +//! +//! ``` +//! use bat::PrettyPrinter; +//! +//! PrettyPrinter::new() +//! .input_from_bytes(b"<span style=\"color: #ff00cc\">Hello world!</span>\n") +//! .language("html") +//! .run() +//! .expect("no errors"); +//! ``` + pub mod assets; pub mod assets_metadata; pub mod config; @@ -21,7 +22,7 @@ mod less; pub(crate) mod line_range; mod output; mod preprocessor; -pub mod pretty_printer; +mod pretty_printer; pub(crate) mod printer; pub(crate) mod style; pub(crate) mod syntax_mapping; @@ -33,6 +34,3 @@ pub use pretty_printer::PrettyPrinter; pub use style::{StyleComponent, StyleComponents}; pub use syntax_mapping::{MappingTarget, SyntaxMapping}; pub use wrap::WrappingMode; - -#[cfg(feature = "paging")] -pub use config::PagingMode; |