Skip to main content

Highlighter

Type Alias Highlighter 

Source
pub type Highlighter = Rc<dyn Fn(&str) -> Vec<TextRun>>;
Expand description

What TextEditor::highlight takes: text in, runs over every byte of it out.

Aliased Type§

pub struct Highlighter { /* private fields */ }