languages: Add .mdc as a recognized Markdown file suffix#50074
Merged
MrSubidubi merged 1 commit intozed-industries:mainfrom Feb 25, 2026
Merged
languages: Add .mdc as a recognized Markdown file suffix#50074MrSubidubi merged 1 commit intozed-industries:mainfrom
.mdc as a recognized Markdown file suffix#50074MrSubidubi merged 1 commit intozed-industries:mainfrom
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
mdc as a recognized Markdown file suffix
mdc as a recognized Markdown file suffix.mdc as a recognized Markdown file suffix
tahayvr
pushed a commit
to tahayvr/zed
that referenced
this pull request
Mar 4, 2026
…tries#50074) Highlight files ending in `.mdc` as Markdown. The `.mdc` extension is used by Cursor for its Markdown-based rule files (`.cursor/rules/*.mdc`). These files are standard Markdown with optional YAML frontmatter, which the existing Markdown grammar already handles well. Adding `.mdc` to the recognized suffixes ensures proper syntax highlighting out of the box. This was requested during review of the agnix extension PR ([zed-industries/extensions#4743](zed-industries/extensions#4743)) by @MrSubidubi as the preferred approach over defining a custom MDC language in an extension. Release Notes: - Added `.mdc` as a recognized Markdown file extension.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Highlight files ending in
.mdcas Markdown.The
.mdcextension is used by Cursor for its Markdown-based rule files (.cursor/rules/*.mdc). These files are standard Markdown with optional YAML frontmatter, which the existing Markdown grammar already handles well. Adding.mdcto the recognized suffixes ensures proper syntax highlighting out of the box.This was requested during review of the agnix extension PR (zed-industries/extensions#4743) by @MrSubidubi as the preferred approach over defining a custom MDC language in an extension.
Release Notes:
.mdcas a recognized Markdown file extension.