require.config({ paths: { 'vs': 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.45.0/min/vs' }}); require(['vs/editor/editor.main'], function() { window.editor = monaco.editor.create(document.getElementById('editor-container'), { value: '// Welcome to CodeWhisper IDE\n// Start coding with AI assistance\n', language: 'javascript', theme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'vs-dark' : 'vs', automaticLayout: true, minimap: { enabled: true } }); });