Highlighter

Trait Highlighter 

Source
pub trait Highlighter {
    // Required method
    fn highlight(&self, buffer: &mut StyledBuffer);
}
Expand description

The syntax highlighting trait. Implementers of this trait will take the current styled buffer and then modify it, which represents the contents of the original line

Required Methods§

Source

fn highlight(&self, buffer: &mut StyledBuffer)

The action that will handle the current styled buffer as a line

Implementors§