Crate dialect

Source
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§

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 HighlightedSpans.
  • 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 StyledGraphemes.