Wrap editor

This commit is contained in:
Themba Dube 2019-07-08 09:43:37 -04:00
parent 0faa3db98b
commit fcc99c0773

View File

@ -217,6 +217,7 @@
}
$(window).load(function() {
editor = ace.edit("editor");
editor.getSession().setUseWrapMode(true);
editor.setAutoScrollEditorIntoView(true);
var PythonMode = ace.require("ace/mode/python").Mode;
editor.session.setMode(new PythonMode());