Package Internals

Highlights Module

Themes Submodule

Highlights.Themes.StyleType
struct Style

An internal type used to track colour scheme definition information such as foreground and background colours as well as bold, italic, and underlining.

source

Lexers Submodule

Highlights.Lexers.wordsMethod
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)"
source