Is it possible to get split panes in Monaco editor? Similar to what's done in VSCode or what is being used in the Diff Editor provided by Monaco itself.
Is ngx-monaco-editor safe to use? The npm package ngx-monaco-editor was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as safe to use.
The Monaco Editor is the code editor that powers VS Code. A good page describing the code editor's features is here. It is licensed under the MIT License and supports Edge, Chrome, Firefox, Safari and Opera. The Monaco editor is not supported in mobile browsers or mobile web frameworks.
You have to share model among editors like
const ed1 = monaco.editor.create(document.getElementById("container1"), {
value: "function hello() {\n\talert('Hello world!');\n}",
language: "javascript"
})
const model = ed1.getModel()
monaco.editor.create(document.getElementById("container2"), {
model,
})
<div id="container1" style="height:50%;"></div>
<div id="container2" style="height:50%;"></div>
You can test that code in playground https://microsoft.github.io/monaco-editor/playground.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With