// Setup editros const grammar = ace.edit("grammar-editor"); grammar.setShowPrintMargin(false); grammar.setValue(localStorage.getItem('grammarText') || ''); grammar.moveCursorTo(0, 0); const code = ace.edit("code-editor"); code.setShowPrintMargin(false); code.setValue(localStorage.getItem('codeText') || ''); code.moveCursorTo(0, 0); const codeAst = ace.edit("code-ast"); codeAst.setShowPrintMargin(false); codeAst.setOptions({ readOnly: true, highlightActiveLine: false, highlightGutterLine: false }) codeAst.renderer.$cursorLayer.element.style.opacity=0; const codeAstOptimized = ace.edit("code-ast-optimized"); codeAstOptimized.setShowPrintMargin(false); codeAstOptimized.setOptions({ readOnly: true, highlightActiveLine: false, highlightGutterLine: false }) codeAstOptimized.renderer.$cursorLayer.element.style.opacity=0; function generateErrorListHTML(errors) { let html = '