Crate tui_pattern_highlighter

Source

Traits§

IntoRegexRef

Functions§

highlight_line
Creates a Line from the given line argument and adds highlight_style to Spans that match the pattern.
highlight_text
Creates Text from the given line argument and adds highlight_style to Spans that match the pattern. When the ‘\n’ character is encountered, a new Line begins.