Skip to content
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

Syntax highlight for *.astro files #357

Open
AriPerkkio opened this issue Oct 2, 2024 · 1 comment
Open

Syntax highlight for *.astro files #357

AriPerkkio opened this issue Oct 2, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@AriPerkkio
Copy link
Member

Is your feature request related to a problem?

*.astro files are displayed without any syntax highlighting in the CodeMirror editor. https://astropatterns-dev.vercel.app

Describe the solution you'd like.

Add syntax highlight similar to:

Describe alternatives you've considered.

Additional context

Split from #144.

@AriPerkkio AriPerkkio added enhancement New feature or request good first issue Good for newcomers nice-to-have Not breaking anything but nice to have labels Oct 2, 2024
@AriPerkkio AriPerkkio mentioned this issue Oct 2, 2024
29 tasks
@AriPerkkio AriPerkkio removed the nice-to-have Not breaking anything but nice to have label Oct 2, 2024
@eric-burel
Copy link
Contributor

There are bounties on this because the problem is that we lack an Astro grammar in the first place in codemirror official packages (where Vue support comes from) or Replit packages (where Svelte come from):

So it seems that these packages rely on a simple grammar describing the language: it must exist in Astro VS code extension/language server, not sure about the formats though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants