[−][src]Trait dialect::Highlight
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
HighlightedSpan
s.
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
HighlightedSpan
s.
fn highlight(&self, input: &str) -> Vec<HighlightedSpan>