package monaco_jsoo

  1. Overview
  2. Docs

Options for the editor functions and methods.

See the API document for each option semantics: https://microsoft.github.io/monaco-editor/api/modules/monaco.editor.html

Option classes

type globalEditor = [
  1. | `GlobalEditor
]
type editor = [
  1. | `Editor
]
type editorConstruction = [
  1. | editor
  2. | `EditorConstruction
]
type standaloneEditorConstruction = [
  1. | globalEditor
  2. | editorConstruction
]
type diffEditor = [
  1. | editor
  2. | `DiffEditor
]
type diffEditorConstruction = [
  1. | diffEditor
  2. | `DiffEditorConstruction
]
type standaloneDiffEditorConstruction = [
  1. | diffEditorConstruction
  2. | `StandaloneDiffEditorConstruction
]
val readOnly : bool -> [> editor ] Moption.t
val theme : string -> [> globalEditor ] Moption.t

Option to set the theme of an editor.

Currently setting the theme of 1 editor affects the other editors in the same browser window. See: https://github.com/Microsoft/monaco-editor/issues/338

val value : string -> [> standaloneEditorConstruction ] Moption.t
val automaticLayout : bool -> [> editor ] Moption.t