Skip to content
ConsoleMonster

API Reference

Class

JsonHighlighter

Namespace ConsoleMonster.Highlighting
Assembly ConsoleMonster
Implements
Modifiers sealed

JSON (and JSONC comments): keys, strings, numbers, true/false/null, punctuation; anything else is an error.

Inheritance

  • Object
  • JsonHighlighter

Constructors

public JsonHighlighter() #

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