Struct reedline::ExampleHighlighter
source · pub struct ExampleHighlighter { /* private fields */ }
Expand description
A simple, example highlighter that shows how to highlight keywords
Implementations§
source§impl ExampleHighlighter
impl ExampleHighlighter
sourcepub fn new(external_commands: Vec<String>) -> ExampleHighlighter
pub fn new(external_commands: Vec<String>) -> ExampleHighlighter
Construct the default highlighter with a given set of extern commands/keywords to detect and highlight
sourcepub 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