package monaco_jsoo

  1. Overview
  2. Docs
type _t
val of_string : string -> t

To get an already registered language

val to_string : t -> string
val register : string -> t

register n adds a new language named n and returns its id.

val setMonarchTokensProvider : t -> Js_of_ocaml.Js.Unsafe.any -> unit

setMonarchTokensProvider t o sets Monarch Token Provider of the language t. The provider o is a JS object documented at https://microsoft.github.io/monaco-editor/monarch.html

OCaml

Innovation. Community. Security.