class

Highligher

Inherits Crystal::SyntaxHighlighter < Reference < Object

Constructors

new(paragraph : Paragraph)
Source

Instance methods

colors
Source
colors=(colors : Hash(TokenType, Vec3f))
Source
default_color
Source
default_variant
Source
render(type : TokenType, value : String)

Renders token with text value.

Source
render_delimiter

Renders a delimiter sequence.

Source
render_interpolation

Renders an interpolation sequence.

Source
render_string_array

Renders a string array sequence.

Source
variants
Source
variants=(variants : Hash(TokenType, FontFamily::Variant))
Source