Module syntect::highlighting

source ·
Expand description

Everything having to do with turning parsed text into styled text.

You might want to check out Theme for its handy text-editor related settings like selection color, ThemeSet for loading themes, as well as things starting with Highlight for how to highlight text.

Structs§

  • RGBA color, directly from the theme
  • The color-independent styling of a font - i.e. bold, italicized, and/or underlined
  • Highlights a line of parsed code given a HighlightState and line of changes from the parser.
  • Keeps a stack of scopes and styles as state between highlighting different lines.
  • Basically a wrapper around a Theme preparing it to be used for highlighting.
  • Highlights a line of parsed code given a HighlightState and line of changes from the parser.
  • A single selector consisting of a stack to match and a possible stack to exclude from being matched.
  • A selector set that matches anything matched by any of its component selectors.
  • Foreground and background colors, with font style
  • A change to a Style applied incrementally by a theme rule
  • A theme parsed from a .tmTheme file.
  • A component of a theme meant to highlight a specific thing (e.g string literals) in a certain way.
  • Properties for styling the UI of a text editor

Enums§