[−][src]Crate dialect
Types and traits for implementing syntax highlighting.
Modules
themes | Some common themes, pre-implemented for convenience. |
Macros
rgb | Allows easy creation of a |
Structs
HighlightGroupIter | |
HighlightedSpan | An individual fragment of highlighted text. |
ResolvedStyle | Identical to a |
Rgb | An RGB colour. |
Style | The styling applied to a given |
StyledGrapheme | An individual styled grapheme. |
Enums
HighlightGroup | The set of possible syntactical forms text can be assigned. |
Traits
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
|
Theme | A trait for defining syntax highlighting themes. |
Functions
render | A convenience function that renders a given input text using a given highlighter and theme,
returning a vector of |