workaround rendering speed issues in CodeMirror with very large scripts. Fixes #4631. Re-arrange editor options in the Preferences dialogue to tidy things up.