Skip to main content

highlight_to_ansi

Function highlight_to_ansi 

Source
pub fn highlight_to_ansi(
    code: &str,
    language: Option<&str>,
    dark: bool,
) -> String
Expand description

Highlight code to ANSI-colored string for terminal. Returns original code if no syntax found.