Package Internals
Highlights Module
Highlights.AbstractLexer — Type.abstract AbstractLexerRepresents a source code lexer used to tokenise text.
Highlights.AbstractTheme — Type.abstract AbstractThemeRepresents a colour scheme used to highlight tokenised source code.
Themes Submodule
Highlights.Themes.RGB — Type.bitstype 32 RGBRepresents a single RGB colour value that can be 'active' or 'inactive'.
Highlights.Themes.Style — Type.bitstype 88 StyleAn internal type used to track colour scheme definition information such as foreground and background colours as well as bold, italic, and underlining.
Highlights.Themes.Theme — Type.immutable ThemeRepresents a "compiled" colour scheme.
Highlights.Themes.rgb3 — Method.Convert a three digit hex string to a 3-tuple of UInt8s.
Highlights.Themes.rgb6 — Method.Convert a six digit hex string to a 3-tuple of UInt8s.
Lexers Submodule
Highlights.Lexers.words — Method.words(vec; prefix, suffix)
Build a regular expression from a vector of strings. Useful for keyword lists.
The keyword arguments prefix and suffix can be used to add patterns before and after the main match group.
Examples
julia> import Highlights.Lexers: words
julia> words(["if", "else"])
r"(if|else)"Highlights.Lexers.@raw_str — Macro.@raw_str(str)
A utility string macro to avoid having to escape strings used to build a regular expression.