Skip to main content

highlighter

Function highlighter 

Source
pub fn highlighter(
    language: Language,
    palette: Palette,
    templates: bool,
) -> impl Fn(&str) -> Vec<TextRun> + 'static
Expand description

A closure for TextEditor::highlight: language tokens, template tags on top when templates is set.