Skip to content

Syntax highlight for *.astro files #357

Open

Description

@AriPerkkio

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.

Activity

  1. added
    enhancementNew feature or request
    nice-to-haveNot breaking anything but nice to have
    and removed
    nice-to-haveNot breaking anything but nice to have
    on Oct 2, 2024
  2. eric-burel commented on Nov 5, 2024

    @eric-burel
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions