editor = CodeMirror.fromTextArea(document.querySelector(`textarea`), {
lineNumbers: true,
styleActiveLine: true,
styleActiveSelected: true,
styleSelectedText:true,
theme: editorTheme,
keyMap: "sublime",
scrollbarStyle: "simple",
indentUnit: 4,
indentWithTabs: true,
autofocus: true,
lineWiseCopyCut: true,
autoCloseBrackets: true,
autoCloseTags: true
});