Skip to main content

Highlighter

Type Alias Highlighter 

Source
pub type Highlighter = fn(&str) -> Vec<(&'static str, String)>;
Expand description

A syntax highlighter: maps source text to a sequence of (css-class, text) runs that are rendered as styled spans behind the editor’s textarea.