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

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

Open
martinbean opened this issue Jan 25, 2025 · 0 comments
Open

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

martinbean opened this issue Jan 25, 2025 · 0 comments

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?

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

No branches or pull requests

1 participant