Skip to main content

highlight_code_to_anstyle_line_segments

Function highlight_code_to_anstyle_line_segments 

Source
pub fn highlight_code_to_anstyle_line_segments(
    code: &str,
    language: Option<&str>,
    theme_name: &str,
    strip_background: bool,
) -> Vec<Vec<(Style, String)>>
Expand description

Highlight code and convert to anstyle segments with optional bg stripping.