Skip to content
ConsoleMonster
Class

YamlHighlighter

ConsoleMonster.Highlighting

Namespace
ConsoleMonster.Highlighting
Assembly
ConsoleMonster
Modifiers
sealed

YAML: comments, document markers, keys, list markers, quoted strings, numbers, booleans/null, anchors and aliases.

Inheritance

  • object
  • YamlHighlighter

Constructors

public YamlHighlighter() #

Methods

public IReadOnlyList<HighlightToken> Tokenize(string text) #

Tokenizes text.

Parameters

text string required
The text (any line endings).

Returns

IReadOnlyList<HighlightToken> The tokens, in order and not overlapping.

Properties

public string Name { get; } #

The language name, for example "json" (lower case).