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§
Sourcefn highlight(&self, buffer: &mut StyledBuffer)
fn highlight(&self, buffer: &mut StyledBuffer)
The action that will handle the current styled buffer as a line