fix(editor): add code block highlighting and controls - #2604
fix(editor): add code block highlighting and controls#2604khoinguyenpham04 wants to merge 10 commits into
Conversation
🦋 Changeset detectedLatest commit: 2f2aab6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 17 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-cache | 2f2aab6 | Aug 22 2026, 06:16 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-do | 2f2aab6 | Aug 22 2026, 06:15 PM |
Scope checkThis PR changes 2,657 lines across 19 files. Large PRs are harder to review and more likely to be closed without review. If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs. See CONTRIBUTING.md for contribution guidelines. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
docs | 2f2aab6 | Aug 22 2026, 06:15 PM |
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://codex-issue-2361-code-block-controls.try.emdashcms.com, https://codex-issue-2361-code-block-controls-emdash-playground.emdash-cms.workers.dev (commit 2f2aab6)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
@emdash-cms/admin
@emdash-cms/auth
@emdash-cms/auth-atproto
@emdash-cms/blocks
@emdash-cms/cloudflare
@emdash-cms/contentful-to-portable-text
emdash
create-emdash
@emdash-cms/gutenberg-to-portable-text
@emdash-cms/plugin-cli
@emdash-cms/plugin-types
@emdash-cms/registry-client
@emdash-cms/registry-lexicons
@emdash-cms/registry-verification
@emdash-cms/sandbox-workerd
@emdash-cms/x402
@emdash-cms/plugin-ai-moderation
@emdash-cms/plugin-atproto
@emdash-cms/plugin-audit-log
@emdash-cms/plugin-color
@emdash-cms/plugin-embeds
@emdash-cms/plugin-field-kit
@emdash-cms/plugin-forms
@emdash-cms/plugin-webhook-notifier
commit: |
What does this PR do?
Fixes code blocks in the admin and inline visual editors so supported languages are syntax-highlighted on borderless light and dark surfaces. It also adds matching controls for choosing a language and copying code while preserving unsupported language values as plain text.
This is the bottom pull request in the code-block editor stack. The focused visual-polish follow-up is #2603.
Closes #2361
Type of change
Checklist
pnpm typecheckpasses — verified for the affected admin and core packagespnpm lintpassespnpm testpasses (or targeted tests for my change)pnpm formathas been run.changeset/bright-code-blocks.mdand.changeset/gentle-code-block-controls.mdAI-generated code disclosure
Screenshots / test output