最近用codemirror开发了一个编辑器,需要支持类似于eclips的自动提示,以及全屏编辑,api是自己框架的,需要根据关键词自动提示api及显示api的文档说明,废话不多说,直接上代码
1.初始化编辑器
var editor = CodeMirror.fromTextArea(document.getElementById("driverContent"), {
lineNumbers: true,
autofocus : true,
theme: "default",
extraKeys: {
"Esc":[......]

近期评论