Skip to main content

highlight_lines

Function highlight_lines 

Source
pub fn highlight_lines(path: &str, lines: &[&str]) -> Option<Vec<String>>
Expand description

Highlight a contiguous run of source lines. Unknown paths return None, allowing callers to preserve their plain escaped rendering.