Skip to main content

highlight_block

Function highlight_block 

Source
pub fn highlight_block(
    lang_hint: Option<&str>,
    source: &str,
    caps: TerminalCaps,
) -> String
Expand description

Highlight a complete fenced code block and return the indented, ANSI-tinted multi-line string ready for push_markdown_body.