Skip to content
ConsoleMonster

API Reference

Enum

HighlightRole

Namespace ConsoleMonster.Highlighting
Assembly ConsoleMonster
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed

What a piece of highlighted text is; each role maps to a theme role (see HighlightStyles).

Inheritance

  • Enum
  • HighlightRole

Usage

Explore 28 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 4

Values

public const HighlightRole Text #

Plain text.

Value: 0
public const HighlightRole Keyword #

A keyword (if, function, SELECT).

Value: 1
public const HighlightRole String #

A string literal.

Value: 2
public const HighlightRole Number #

A number.

Value: 3
public const HighlightRole Literal #

true, false, null and similar constants.

Value: 4
public const HighlightRole Comment #

A comment.

Value: 5
public const HighlightRole Key #

A key or property name (JSON keys, YAML keys, INI keys, XML attributes).

Value: 6
public const HighlightRole Punctuation #

Brackets, commas, colons and other punctuation.

Value: 7
public const HighlightRole Operator #

An operator.

Value: 8
public const HighlightRole Type #

A type name or a command (C# types, PowerShell cmdlets, XML tags).

Value: 9
public const HighlightRole Variable #

A variable.

Value: 10
public const HighlightRole Error #

Something wrong (an error level, an invalid token).

Value: 11
public const HighlightRole Warning #

A warning level.

Value: 12
public const HighlightRole Info #

An informational level.

Value: 13
public const HighlightRole Added #

A line added in a diff.

Value: 14
public const HighlightRole Removed #

A line removed in a diff.

Value: 15
public const HighlightRole Header #

A diff hunk header or a section header.

Value: 16
public const HighlightRole Timestamp #

A time stamp, date or time.

Value: 17
public const HighlightRole Identifier #

An identifier value: a GUID, an IP address, a distinguished name, a path.

Value: 19
public const HighlightRole Emphasis #

Emphasis (Markdown).

Value: 20
public const HighlightRole Strong #

Strong emphasis (Markdown).

Value: 21
public const HighlightRole Heading #

A heading (Markdown).

Value: 22