package monaco_jsoo

  1. Overview
  2. Docs

Module Editor.OptionSource

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

Sourcetype globalEditor = [
  1. | `GlobalEditor
]
Sourcetype editor = [
  1. | `Editor
]
Sourcetype editorConstruction = [
  1. | editor
  2. | `EditorConstruction
]
Sourcetype standaloneEditorConstruction = [
  1. | globalEditor
  2. | editorConstruction
]
Sourcetype diffEditor = [
  1. | editor
  2. | `DiffEditor
]
Sourcetype diffEditorConstruction = [
  1. | diffEditor
  2. | `DiffEditorConstruction
]
Sourcetype standaloneDiffEditorConstruction = [
  1. | diffEditorConstruction
  2. | `StandaloneDiffEditorConstruction
]
Sourceval readOnly : bool -> [> editor ] Moption.t
Sourceval 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

Sourceval automaticLayout : bool -> [> editor ] Moption.t
OCaml

Innovation. Community. Security.