从无法访问的项目Fork
体验新版 GitCode,发现更多精彩内容 >>
'use strict'; module.exports = function(id) { const editor = ace.edit(id); editor.setOptions({ enableBasicAutocompletion: true, enableSnippets: true, enableLiveAutocompletion: true }); editor.setTheme('ace/theme/tomorrow_night_eighties'); editor.session.setMode('ace/mode/javascript'); editor.$blockScrolling = Infinity; return editor; };