Skip to content
ConsoleMonster
Class

XmlHighlighter

ConsoleMonster.Highlighting

Namespace
ConsoleMonster.Highlighting
Assembly
ConsoleMonster
Modifiers
sealed

XML and HTML: tags, attribute names and values, comments, CDATA, processing instructions and entities.

Inheritance

  • object
  • XmlHighlighter

Constructors

public XmlHighlighter() #

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).