Skip to content

Fix missing CSS highlighting in CodeMirror editor#8863

Open
karlhorky wants to merge 1 commit intocodesandbox:mainfrom
karlhorky:patch-1
Open

Fix missing CSS highlighting in CodeMirror editor#8863
karlhorky wants to merge 1 commit intocodesandbox:mainfrom
karlhorky:patch-1

Conversation

@karlhorky
Copy link

@karlhorky karlhorky commented Feb 2, 2026

What kind of change does this PR introduce?

Bug fix: Fix the missing CSS syntax highlighting in the CodeMirror editor (all CSS code remains dark gray on the left side):

Screenshot 2026-02-02 at 16 26 24

There is also no tokenization of the CSS syntax:

Screenshot 2026-01-20 at 17 39 49

https://codesandbox.io/embed/mdgh4k?codemirror=1&fontsize=12&module=index.css&module=index.html&view=split

What is the current behavior?

CSS syntax highlighting missing (see above)

What is the new behavior?

CSS syntax highlighting not missing (hopefully)

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

  1. Submit the PR
  2. Get this checked through some process or through @CompuIves

Checklist

  • Documentation
  • Testing
  • Ready to be merged
  • Added myself to contributors table

cc @CompuIves here's the PR we talked about offline

Copilot AI review requested due to automatic review settings February 2, 2026 15:29
@codesandbox
Copy link

codesandbox bot commented Feb 2, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes missing CSS syntax highlighting in the CodeMirror editor by adding the required CSS mode import to the CodeMirror utilities module.

Changes:

  • Added CSS mode import to ensure CSS syntax highlighting works in all CodeMirror instances

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants