Skip to content

[Feature]: Syntax highlighting of Alpine [x-data] blocks #222

Open
@martinbean

Description

@martinbean

Feature Description

I work a lot with Alpine, so have a lot of inline x-data expressions in Blade templates.

It would be nice to have JavaScript syntax highlighting of code in these attributes, instead of it just being rendered as a string value:

Alpine code in a Blade template

I’ve not done any Visual Studio Code extension development before, but would it be a case of, when encountering an x-data attribute, to then “switch” the language mode for the contents?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions