Struct reedline::DefaultHighlighter [−][src]
pub struct DefaultHighlighter { /* fields omitted */ }
Expand description
A simple, example highlighter that shows how to highlight keywords
Implementations
Construct the default highlighter with a given set of extern commands/keywords to detect and highlight
pub fn change_colors(
&mut self,
match_color: Color,
notmatch_color: Color,
neutral_color: Color
)
pub fn change_colors(
&mut self,
match_color: Color,
notmatch_color: Color,
neutral_color: Color
)
Configure the highlighter to use different colors
Trait Implementations
The action that will handle the current buffer as a line and return the corresponding StyleText for the buffer