Skip to content
ConsoleMonster
Class

SmartHighlighter

ConsoleMonster.Highlighting

Namespace
ConsoleMonster.Highlighting
Assembly
ConsoleMonster
Modifiers
sealed

Values in plain text: URLs and e-mail addresses (as links), GUIDs, distinguished names, dates and times, IPv4 and IPv6 addresses, Windows and Unix paths, quoted strings, booleans and null, and numbers with units.

Inheritance

  • object
  • SmartHighlighter

Constructors

public SmartHighlighter() #

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