Skip to content

fix: unify editor and output syntax highlighting - #486

Merged
Dunqing merged 3 commits into
mainfrom
claude/playground-highlighting-split
Nov 16, 2026
Merged

Dunqing merged 3 commits into
mainfrom
claude/playground-highlighting-split

Conversation

@Dunqing

@Dunqing Dunqing commented Nov 16, 2026

Copy link
Copy Markdown
Member

Source and printed output currently color identifiers such as useEffect differently. Share Shiki grammars and Vitesse-based palettes across Monaco, printed output, and AST values. Preserve diagnostics, filename changes, and hover cleanup during lazy initialization; fall back to Monaco's built-in theme if highlighting fails to load.

Depends on #485.

Validation: formatting, TypeScript, lint, linter-rule freshness, and production build passed. Browser comparisons matched 87 comparable characters in both themes with zero text or color mismatches, and live edits updated the output.

Existing Monaco service-registration errors remain outside this change.

Refresh the light and dark surfaces with logo-derived cyan accents and a
compact header. Add a collapsible configuration sidebar with mobile focus
management, inline lint rules, and Define options under Transformer.

Use compact checkboxes, smaller fields, and quieter secondary actions to
keep the configuration panel dense and readable.
Use shared Shiki grammars and palettes for Monaco, printed output, and AST
values. Keep separate registries for Monaco and HTML, flatten translucent
foregrounds, and emit both HTML palettes for reactive theme changes.

Preserve diagnostics, model changes, and hover cleanup while the editor
waits for highlighting. Fall back to the built-in editor theme if loading
fails.
@github-actions

Copy link
Copy Markdown
Contributor

@Dunqing
Dunqing marked this pull request as ready for review November 16, 2026 02:47
Base automatically changed from claude/serene-heyrovsky-512349 to main November 16, 2026 02:53
…hlighting-split

# Conflicts:
#	src/index.css
@Dunqing
Dunqing enabled auto-merge (squash) November 16, 2026 03:06
@github-actions

Copy link
Copy Markdown
Contributor

@Dunqing
Dunqing merged commit 9eb4a21 into main Nov 16, 2026
4 checks passed
@Dunqing
Dunqing deleted the claude/playground-highlighting-split branch November 16, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant