Tweak ACE defaults

This commit is contained in:
Noah 2017-12-23 15:37:59 -08:00
parent 9e58456aaa
commit 4cc50e86c9
2 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,8 @@ var ACE;
editor.setTheme("ace/theme/monokai"); editor.setTheme("ace/theme/monokai");
var ses = editor.getSession(); var ses = editor.getSession();
ses.setTabSize(4); ses.setTabSize(4);
ses.setUseSoftTabs(true); ses.setUseSoftTabs(false);
ses.setUseWrapMode(true);
// On save. // On save.
ses.on("change", function() { ses.on("change", function() {

View File

@ -174,7 +174,8 @@ var ACE;
editor.setTheme("ace/theme/monokai"); editor.setTheme("ace/theme/monokai");
var ses = editor.getSession(); var ses = editor.getSession();
ses.setTabSize(4); ses.setTabSize(4);
ses.setUseSoftTabs(true); ses.setUseSoftTabs(false);
ses.setUseWrapMode(true);
// On save. // On save.
ses.on("change", function() { ses.on("change", function() {