[−][src]Crate dialect
Types and traits for implementing syntax highlighting.
Macros
| rgb | Allows easy creation of a |
Structs
| HighlightGroupIter | |
| HighlightedSpan | An individual fragment of possibly highlighted text. |
| ResolvedStyle | Identical to a |
| Rgb | An RGB colour. |
| Style | The styling applied to a given |
| StyledSpan | An individual fragment of styled text. |
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 |