monaco-editor是编码vs code的代码编辑器。描述代码编辑器功能的好页面就在这里。javascript
它根据麻省理工学院许可证得到许可,并支持IE 11,Edge,Chrome,Firefox,Safari和Opera。html
移动浏览器或移动网络框架不支持monaco-editor。java
使用方法
npm install monaco-editor@0.10.0 //npm ///////////////////////////////////javascript///////////////////// editorcca = monaco.editor.create(document.getElementById('container'), { language:'html', theme:'vs-dark', automaticLayout: true, });