Trait reedline::Highlighter[][src]

pub trait Highlighter {
    fn highlight(&self, line: &str) -> StyledText;
}
Expand description

The syntax highlighting trait. Implementers of this trait will take in the current string and then return a StyledText object, which represents the contents of the original line as styled strings

Required methods

The action that will handle the current buffer as a line and return the corresponding StyleText for the buffer

Implementors