API Reference
Enum
HighlightRole
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.
Returned or exposed by 24
- Field HighlightRole.Added
- Field HighlightRole.Comment
- Field HighlightRole.Emphasis
- Field HighlightRole.Error
- Field HighlightRole.Header
- Field HighlightRole.Heading
- Field HighlightRole.Identifier
- Field HighlightRole.Info
- Field HighlightRole.Key
- Field HighlightRole.Keyword
- Field HighlightRole.Link
- Field HighlightRole.Literal
- Field HighlightRole.Number
- Field HighlightRole.Operator
- Field HighlightRole.Punctuation
- Field HighlightRole.Removed
- Field HighlightRole.String
- Field HighlightRole.Strong
- Field HighlightRole.Text
- Field HighlightRole.Timestamp
- Field HighlightRole.Type
- Field HighlightRole.Variable
- Field HighlightRole.Warning
- Property HighlightToken.Role
Accepted by parameters 4
- Method HighlightStyles.For
- Constructor HighlightToken.HighlightToken
- Method RegexHighlighter.Rule
- Method RegexHighlighter.Words
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from Enum
Parameters
- obj Object?
ToString 4 overloads
public String ToString(IFormatProvider? provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
public String ToString(String? format, IFormatProvider? provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format String?
- provider IFormatProvider?
Values
public const HighlightRole Key #A key or property name (JSON keys, YAML keys, INI keys, XML attributes).
Value:
6public const HighlightRole Type #A type name or a command (C# types, PowerShell cmdlets, XML tags).
Value:
9public const HighlightRole Identifier #An identifier value: a GUID, an IP address, a distinguished name, a path.
Value:
19