[][src]Trait dialect::Highlight

pub trait Highlight {
    fn highlight(&self, input: &str) -> Vec<HighlightedSpan>;
}

This trait is to be implemented by any type that syntax highlights source code for a particular language. This is done by taking in a string slice and outputting a vector of HighlightedSpans.

Required methods

fn highlight(&self, input: &str) -> Vec<HighlightedSpan>

Loading content...

Implementors

Loading content...