Expand description
Types and traits for implementing syntax highlighting.
Modules§
- Some common themes, pre-implemented for convenience.
Macros§
- Allows easy creation of a
Rgb
.
Structs§
- An individual fragment of highlighted text.
- Identical to a
Style
, except that all its fields are mandatory. - An RGB colour.
- The styling applied to a given
HighlightGroup
. - An individual styled grapheme.
Enums§
- The set of possible syntactical forms text can be assigned.
Traits§
- 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. - A trait for defining syntax highlighting themes.
Functions§
- A convenience function that renders a given input text using a given highlighter and theme, returning a vector of
StyledGrapheme
s.