editor: more tweaks

This commit is contained in:
jean-emmanuel 2021-12-13 23:52:01 +01:00
parent 99dc837cfd
commit cd50f76cb4
2 changed files with 4 additions and 2 deletions

View file

@ -18,7 +18,7 @@ for (var name of ['script', 'draw', 'touch']) {
editors[name] = ace.edit('editor-' + name)
editors[name].getSession().setMode('ace/mode/javascript')
editors[name].setOption('autoScrollEditorIntoView', true)
editors[name].setOption('maxLines', 80)
editors[name].setOption('maxLines', 40)
editors[name].setOption('blockScrolling', Infinity)
editors[name].commands.bindKeys({'ctrl-l':null, 'ctrl-f': null,'cmd-l':null, 'cmd-f': null})
editors[name].renderer.setScrollMargin(4, 4, 0, 4)