# XWUICodeBlock

Syntax-highlighted code block - the library's universal code-display facade. When the super tier is available it upgrades itself to a view-mode `XWUIScriptEditor` on the first-party `xw` engine (resolved at runtime through the licence-aware registry, never a build-time edge), so every code block in every UI is the same surface with zero external dependencies. Unentitled callers keep the bundled lezer highlighting; a self-hosted Prism distribution remains opt-in via `engineSources.prism`. Plain code always renders first and stays visible if highlighting is unavailable.

## Basic Usage

Default JS snippet, no extras.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Default JS snippet, no extras.
```

## Languages

TypeScript / Python / Bash / JSON side by side.

```example
file: examples/Languages.ts
html: examples/Languages.html
title: Languages
description: TypeScript / Python / Bash / JSON side by side.
```

## With Line Numbers

Line numbers + copy button enabled.

```example
file: examples/WithLineNumbers.ts
html: examples/WithLineNumbers.html
title: With Line Numbers
description: Line numbers + copy button enabled.
```

```api
```
