For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDCodeEditor

Creates a new Monaco code editor control.

Synopsis

Creates a new Monaco code editor control.

Syntax

New-UDCodeEditor [-Id <String>] [-Language <String>] [-Height <String>] [-Width <String>] [-HideCodeLens] [-DisableCodeFolding] [-FormatOnPaste] [-GlyphMargin] [-DisableLineNumbers] [-DisableLinks] [-DisableBracketMatching] [-MouseWheelScrollSensitivity <Int32>] [-MouseWheelZoom] [-ReadOnly] [-RenderControlCharacters] [-ShowFoldingControls <String>] [-SmoothScrolling] [-LightTheme <String>] [-DarkTheme <String>] [-Code <String>] [-Original <String>] [-CanSave] [-Extension <String>] [<CommonParameters>]

    New-UDCodeEditor [-Id <String>] [-Language <String>] [-Height <String>] [-Width <String>] [-Code <String>] [-Original <String>] [-Options <Hashtable>] [-CanSave] [-Extension <String>] [<CommonParameters>]

Description

Creates a new Monaco code editor control.

Parameters

-Id

The ID of this editor

Required?                    false
Position?                    named
Default value                ([Guid]::NewGuid())
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Language

The language to use for syntax highlighting.

-Height

The height of the editor.

-Width

The width of the editor.

-MouseWheelScrollSensitivity

Sets the mouse wheel scroll sensitivity.

-ShowFoldingControls

Controls how to show the folding controls.

-LightTheme

The light theme for the editor.

-DarkTheme

The dark theme for the editor.

-Code

The code to show in the editor.

-Original

The original code to compare against.

-Options

A hashtable of options to apply to the editor.

-Extension

The extension of the file.

Outputs

-------------------------- EXAMPLE 1 --------------------------

Last updated

Was this helpful?