diff --git a/demo/demo.js b/demo/demo.js index 5de9c400..f40ff3c8 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -301,6 +301,10 @@ exports.launch = function(env) { env.editor.renderer.setHScrollBarAlwaysVisible(checked); }); + bindCheckbox("soft_tab", function(checked) { + env.editor.getSession().setUseSoftTabs(checked); + }); + function bindCheckbox(id, callback) { var el = document.getElementById(id); var onCheck = function() { diff --git a/index.html b/index.html index 60703dd5..4cdac4cd 100644 --- a/index.html +++ b/index.html @@ -71,7 +71,7 @@