# XWUIScriptEditor

Multi-engine script editor with centralized XW grammar support. Engines: `xw` (the DEFAULT - first-party native engine: a few KB, executes the XW Lark grammar catalog directly, no external assets, no workers, virtualized for large files, folding/sticky headings/minimap/occurrence highlighting/structural syntax checking built in), `monaco` (vendored, full IDE viewport), `codemirror6` (local bundle), and opt-in remote engines (`ace`, `highlightjs`, `ckeditor-code`) via `engineSources`. `syntaxCheck` (default on) squiggles unmatched/unclosed brackets on the native engine.

## Basic Usage

TypeScript code in dark theme.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: TypeScript code in dark theme.
```

## Python Read-Only View

Python grammar in read-only 'view' mode - a non-editable source pane.

```example
file: examples/PythonReadOnly.ts
html: examples/PythonReadOnly.html
title: Python Read-Only View
description: Python grammar in read-only 'view' mode - a non-editable source pane.
```

## JSON in Light Theme

JSON grammar on the Monaco engine with the light 'vs' theme.

```example
file: examples/JsonLightTheme.ts
html: examples/JsonLightTheme.html
title: JSON in Light Theme
description: JSON grammar on the Monaco engine with the light 'vs' theme.
```

```api
```
