[−][src]Trait unsegen_pager::Highlighter
Interface for anything that highlights the content of Pagers.
SyntectHighlighter
is an exemplary implementation that can should be sufficient for most
use cases.
Required methods
fn highlight<'a, L: Iterator<Item = &'a dyn PagerLine>>(
&self,
lines: L
) -> HighlightInfo
&self,
lines: L
) -> HighlightInfo
Compute highlighting information for the given range of lines.
Implementors
impl<'a> Highlighter for SyntectHighlighter<'a>
[src]
fn highlight<'b, L: Iterator<Item = &'b dyn PagerLine>>(
&self,
lines: L
) -> HighlightInfo
[src]
&self,
lines: L
) -> HighlightInfo