Here [1] is a working sample showing how to register a completion item provider for a language.
The monaco-typescript [2] plugin shows how a lot of the language API can be used.
[1] https://microsoft.github.io/monaco-editor/playground.html#ex...
[2] https://github.com/Microsoft/monaco-typescript/blob/master/s...
Re:The Monaco Code Editor
by Matthias247 on Monday June 20, 2016 @05:43PM
(#11941818)
Thanks, that should be a good start. [1] does not demonstrate context-dependent completions, but I guess it should be possible, and maybe [2] helps there. It's also nice that in the playground intellisense for the monaco API is enabled.
I might need to integrate an editor for a custom DSL into a webapp soon, and Monaco could of course be an interesting alternative to codemirror or ACE.