core/api/modules/code/mod.js

3 lines
119 B
JavaScript

var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
editor.session.setMode("ace/mode/javascript");