微软的开源代码编辑器 monaco-editor


monaco-editor是编码vs code的代码编辑器。描述代码编辑器功能的好页面就在这里

它根据麻省理工学院许可证获得许可,并支持IE 11,Edge,Chrome,Firefox,Safari和Opera。

移动浏览器或移动网络框架不支持monaco-editor。

使用方法

npm install monaco-editor@0.10.0 //npm
///////////////////////////////////javascript///////////////////// 
editorcca = monaco.editor.create(document.getElementById('container'), {
language:'html',
theme:'vs-dark',
automaticLayout: true,
});
 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM