【文件属性】:
文件名称:codemirror-inject:将 CodeMirror 注入包含基本和主题 CSS 的页面
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-15 21:17:33
JavaScript
代码镜像注入
将 CodeMirror 注入包含基本和主题 CSS 的页面
用法
var codemirror = require ( 'codemirror-inject' ) ;
var el = document . getElementById ( 'editor' ) ;
// loads the base styling for codemirror and mounts an instance in the given el
var editor = codemirror ( el , {
mode : 'javascript' , // will load the `javascript` syntax mode
theme : 'monokai' // will load the `monokai` theme
} ) ;
执照
麻省理工学院
【文件预览】:
codemirror-inject-master
----.gitignore(639B)
----.eslintrc(248B)
----package.json(993B)
----webpack.config.js(446B)
----.travis.yml(445B)
----.zuul.yml(14B)
----LICENSE(1KB)
----index.js(548B)
----README.md(615B)
----test()
--------index.js(2KB)
----.editorconfig(197B)