Tweak ACE defaults
This commit is contained in:
parent
9e58456aaa
commit
4cc50e86c9
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user