[][src]Function takeoff::syntax_highlighting::highlight_code

pub fn highlight_code(
    source: &str,
    syntax: &SyntaxReference,
    syntax_set: &SyntaxSet
) -> String

Highlights some code with syntect. See the source code for tera_highlight_code for an example.