{#if $editorStore.hasUnsavedChanges}
Unsaved changes
{/if}
{#if $editorStore.cursorPosition}
Ln {$editorStore.cursorPosition.line}, Col {$editorStore.cursorPosition.column}
{/if}
{$editorStore.language}
```
### Toolbar Features
When `showToolbar={true}`:
- Language selector dropdown
- Line numbers toggle
- Theme toggle (light/dark)
- Format button
- Save button (shows "Save *" when unsaved changes)
### Keyboard Shortcuts
CodeMirror provides standard keyboard shortcuts:
- `Ctrl/Cmd + S`: Save
- `Ctrl/Cmd + Z`: Undo
- `Ctrl/Cmd + Shift + Z`: Redo
- `Ctrl/Cmd + /`: Toggle comment
- `Ctrl/Cmd + D`: Delete line
- `Ctrl/Cmd + A`: Select all
---
## CODE HIGHLIGHT (Prism.js)
**Purpose**: Read-only syntax highlighting for displaying code snippets.
### Quick Start
```typescript
import { CodeHighlight } from '@composable-svelte/code';