Skip to content
ConsoleMonster

API Reference

Class

SmartHighlighter

Namespace ConsoleMonster.Highlighting
Assembly ConsoleMonster
Implements
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) #
Returns: IReadOnlyList<HighlightToken>

Tokenizes text.

Parameters

text System.String requiredposition: 0
The text (any line endings).

Returns

The tokens, in order and not overlapping.

Properties

public String Name { get; } #

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