This commit is contained in:
Chris Wanstrath 2011-08-18 23:35:10 -07:00
parent 97d079bd8f
commit 3529b7e133
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,8 @@ editor = ace.edit "editor"
editor.setTheme "ace/theme/twilight"
JavaScriptMode = require("ace/mode/javascript").Mode
editor.getSession().setMode new JavaScriptMode
editor.getSession().setUseSoftTabs true
editor.getSession().setTabSize 2
filename = null
save = ->

View File

@ -5,6 +5,8 @@
editor.setTheme("ace/theme/twilight");
JavaScriptMode = require("ace/mode/javascript").Mode;
editor.getSession().setMode(new JavaScriptMode);
editor.getSession().setUseSoftTabs(true);
editor.getSession().setTabSize(2);
filename = null;
save = function() {
var str;