Skip to content

feat: enable highlighting for json, jsonc, toml, yaml #1399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

eltigerchino
Copy link
Member

@eltigerchino eltigerchino commented Jun 27, 2025

This PR enables highlighting for json and jsonc by reusing the js highlighter, includes the toml highlighting add-on, maps the yaml highlighter correctly (the plugin was already added) and ensures an error occurs rather than silently not highlighting code blocks if a language is not supported.

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.

Copy link

vercel bot commented Jun 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
svelte-dev ❌ Failed (Inspect) Jun 27, 2025 4:53pm

@eltigerchino eltigerchino changed the title feat: enable highlighting for json, jsonc, toml feat: enable highlighting for json, jsonc, toml, yaml Jun 27, 2025
@eltigerchino eltigerchino marked this pull request as ready for review June 27, 2025 16:48
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