OptionalaccessibilityOptionalariaContainer element to use for ARIA messages. Defaults to document.body.
OptionalariaThe aria label for the editor's textarea (when it is focused).
OptionalautomaticEnable that the editor will install a ResizeObserver to check if its container dom node size has changed. Defaults to false.
OptionalcodeShow code lens Defaults to true.
OptionalcolorEnable inline color decorators and color picker rendering.
OptionalcolorControls the max number of color decorators that can be rendered in an editor at once.
OptionalcontextmenuEnable custom contextmenu. Defaults to true.
OptionaldragControls if the editor should allow to move selections via drag and drop. Defaults to false.
OptionalextraClass name to be added to the editor.
OptionalfoldingEnable code folding. Defaults to true.
OptionalfontThe font family
OptionalfontThe font size
OptionalfontThe font weight
OptionallanguageThe initial language of the auto created model in the editor.
OptionalletterThe letter spacing
OptionallightbulbControl the behavior and rendering of the code action lightbulb.
OptionallineThe line height
OptionallineControl the rendering of line numbers.
Defaults to true.
OptionallinksEnable detecting links and making them clickable. Defaults to true.
OptionalminimapControl the behavior and rendering of the minimap.
OptionalmultiControls the max number of text cursors that can be in an active editor at once.
OptionalmultiThe modifier to be used to add multiple cursors with the mouse. Defaults to 'alt'
OptionalpaddingControls the spacing around the editor.
OptionalreadShould the editor be read only. See also domReadOnly.
Defaults to false.
OptionaltabThe tabindex property of the editor's textarea
OptionalthemeInitial theme to be used for rendering.
The current out-of-the-box available themes are: 'vs' (default), 'vs-dark', 'hc-black', 'hc-light.
You can create custom themes via monaco.editor.defineTheme.
To switch a theme, use monaco.editor.setTheme.
NOTE: The theme might be overwritten if the OS is in high contrast mode, unless autoDetectHighContrast is set to false.
OptionalvalueThe initial value of the auto created model in the editor.
OptionalwordControl the wrapping of the editor.
When wordWrap = "off", the lines will never wrap.
When wordWrap = "on", the lines will wrap at the viewport width.
When wordWrap = "wordWrapColumn", the lines will wrap at wordWrapColumn.
When wordWrap = "bounded", the lines will wrap at min(viewport width, wordWrapColumn).
Defaults to "off".
Controls the number of lines in the editor that can be read out by a screen reader