Module syntect::highlighting
[−]
[src]
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 colour, ThemeSet for loading themes,
as well as things starting with Highlight for how to highlight text.
Structs
| Color |
RGBA colour, these numbers come directly from the theme so for now you might have to do your own colour space conversion if you are outputting a different colour space from the theme. This can be a problem because some Sublime themes use sRGB and some don't. This is specified in an attribute syntect doesn't parse yet. |
| FontStyle |
This can be a combination of |
| HighlightIterator |
Highlights a line of parsed code given a |
| HighlightState |
Keeps a stack of scopes and styles as state between highlighting different lines. If you are highlighting an entire file you create one of these at the start and use it all the way to the end. |
| Highlighter |
Basically a wrapper around a |
| ScopeSelector |
A single selector consisting of a stack to match and a possible stack to exclude from being matched.
You probably want |
| ScopeSelectors |
A selector set that matches anything matched by any of its component selectors. See The TextMate Docs for how these work. |
| Style |
The foreground, background and font style |
| StyleModifier |
A change to a |
| Theme |
A theme parsed from a |
| ThemeItem |
A component of a theme meant to highlight a specific thing (e.g string literals) in a certain way. |
| ThemeSet | |
| ThemeSettings |
Various properties meant to be used to style a text editor. Basically all the styles that aren't directly applied to text like selection colour. Use this to make your editor UI match the highlighted text. |
Enums
| ParseThemeError | |
| SettingsError |
An error parsing a settings file |
| UnderlineOption |
Constants
| BLACK |
Pre-defined convenience colour |
| FONT_STYLE_BOLD |
A bitfield constant FontStyle |
| FONT_STYLE_ITALIC |
A bitfield constant FontStyle |
| FONT_STYLE_UNDERLINE |
A bitfield constant FontStyle |
| WHITE |
Pre-defined convenience colour |