API Reference
Class
PowerShellHighlighter
PowerShell: comments and comment blocks, strings and here-strings, variables, keywords, commands (Verb-Noun), parameters, operators (-eq, -match), type literals ([int]), numbers (with KB/MB suffixes) and punctuation.
Inheritance
- Object
- PowerShellHighlighter
Constructors
public PowerShellHighlighter() #Methods
public IReadOnlyList<HighlightToken> Tokenize(String text) #Returns:
IReadOnlyList<HighlightToken>Tokenizes text.
Parameters
- text System.String
- The text (any line endings).
Returns
The tokens, in order and not overlapping.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public String Name { get; } #The language name, for example "json" (lower case).