[][src]Trait unsegen_pager::Highlighter

pub trait Highlighter {
    fn highlight<'a, L: Iterator<Item = &'a dyn PagerLine>>(
        &self,
        lines: L
    ) -> HighlightInfo; }

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

Compute highlighting information for the given range of lines.

Loading content...

Implementors

impl<'a> Highlighter for SyntectHighlighter<'a>[src]

Loading content...