New-UDSyntaxHighlighter
Synopsis
Syntax highlighting for text.
Syntax
New-UDSyntaxHighlighter [[-Id] <String>] [[-Code] <String>] [[-Language] <String>] [[-Style] <String>] [-ShowLineNumbers] [<CommonParameters>]Description
Syntax highlighting for text.
Parameters
-Id
The ID of this component.
Required? false
Position? 1
Default value [Guid]::NewGuid()
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Code
The code to syntax highlight.
-Language
The language to highlight the code in.
-Style
The style to apply to the code.
-ShowLineNumbers
Whether to show line numbers.
Common parameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Outputs
Examples
Example 1: Basic Syntax Highlighter
A basic syntax highlighter.
Example 2: Style
A syntax highlighter with a style.
Example 3: Line Numbers
A syntax highlighter with line numbers.
Last updated
Was this helpful?