Crate colorblast

Crate colorblast 

Source
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 classifying TokenSpans of some input.
prelude

Structs§

Color
Style
TokenSpan

Enums§

Token
Generic Token with variants useful for applying syntax highlighting to TokenSpans.

Traits§

AsStyle
StylizeToken

Functions§

print_code
print_styled_tokens
Prints all styled tokens to the standard output.
print_stylized_tokens
Stylizes all tokens and 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