Expand description
Render syntax highlighted code into HTML or ANSI codes for the terminal.
Re-exports§
pub use crate::lexers::Lexer;
Modules§
- lexers
- Implementation of various lexers, for generating
Tokens by classifyingTokenSpans of some input. - prelude
Structs§
Enums§
Traits§
Functions§
- print_
code - print_
styled_ tokens - Prints all styled
tokensto the standard output. - print_
stylized_ tokens - Stylizes all
tokensand prints them to the standard output. - println_
code - println_
styled_ tokens - Same as
print_styled_tokens()+println!()after. - println_
stylized_ tokens - Same as
print_stylized_tokens()+println!()after. - render_
html - render_
html_ into