设置ace编辑器的路径:
var jspEditor = ace.edit("html_editor");
//设置ace编辑器资源文件所在位置
ace.config.set('basePath', 'resources/plugins/ace-builds-master/src-min-noconflict');
jspEditor.getSession().setUseWorker(false);
//设置主题
jspEditor.setTheme("ace/theme/chrome");
//设置语法
jspEditor.getSession().setMode("ace/mode/jsp");
//设置字体大小
document.getElementById('html_editor').style.fontSize = '14px';
ace.config.set("modePath", "Scripts/Ace");
ace
.config.set("workerPath", "Scripts/Ace"); ace.config.set("themePath", "Scripts/Ace");