
        const editor = CodeMirror.fromTextArea(document.getElementById('code-editor'), {
            mode: 'rust', // Close enough syntax highlighting
            theme: 'dracula',
            lineNumbers: true,
            autoCloseBrackets: true,
            matchBrackets: true,
            indentUnit: 4,
            tabSize: 4,
            lineWrapping: true,
            extraKeys: {
                'Ctrl-Enter': runCode,
                'Cmd-Enter': runCode
            }
        });

        // Example