Configuration Editor
{settingsState.configFilePath}
showSettings = !showSettings} class="text-zinc-400 hover:text-white transition-colors p-2 hover:bg-white/5 rounded-lg {showSettings ? 'bg-white/10 text-white' : ''}" title="Editor Settings" >
{#if showSettings}
Line Numbers
Cursor Status
{/if}
settingsState.closeConfigEditor()} class="text-zinc-400 hover:text-white transition-colors p-2 hover:bg-white/5 rounded-lg" title="Close (Esc)" >
{#if localError || settingsState.configEditorError}
{localError || settingsState.configEditorError}
{/if}
{#if showLineNumbers}
{#each lines as _, i}
{i + 1}
{/each}
{/if}
{@html highlightedCode}
showSettings = false} class="absolute inset-0 w-full h-full p-4 bg-transparent text-transparent caret-white font-mono text-sm leading-relaxed resize-none focus:outline-none whitespace-pre overflow-auto z-10 selection:bg-indigo-500/30" spellcheck="false" autocorrect="off" autocapitalize="off" >
{#if showStatusBar}
Ln {cursorLine}
Col {cursorCol}
{/if}
Ctrl+S
save
settingsState.closeConfigEditor()} class="px-4 py-2 bg-zinc-800 hover:bg-zinc-700 text-white rounded-lg text-sm font-medium transition-colors" > Cancel
handleSave(false)} disabled={isSaving || !!localError} class="px-4 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 disabled:cursor-not-allowed text-white rounded-lg text-sm font-medium transition-colors flex items-center gap-2" title={localError ? "Fix errors before saving" : "Save changes"} > {#if isSaving}
Saving... {:else}
Save {/if}