Skip to content

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

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
martinbean opened this issue Jan 25, 2025 · 1 comment · May be fixed by #306
Open

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

martinbean opened this issue Jan 25, 2025 · 1 comment · May be fixed by #306

Comments

@martinbean
Copy link

martinbean commented Jan 25, 2025

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?

@N1ebieski
Copy link
Contributor

#306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants