Replies: 5 comments
-
Beta Was this translation helpful? Give feedback.
-
Following up, that I also can't use something like |
Beta Was this translation helpful? Give feedback.
-
I don't have these highlighting issues at all. Are you not using the Astro extension for language support? |
Beta Was this translation helpful? Give feedback.
-
@ekwoka Yes I am using the official extension: Identifier: astro-build.astro-vscode
Version: 2.15.4
Last Updated: 2025-01-13, 11:04:54 Confirmed. Disabling the extension removes all syntax highlighting in I also have Astro plugins for ESLint and Prettier: "eslint": "^9.21.0",
"eslint-plugin-astro": "^1.3.1",
"prettier": "^3.5.2",
"prettier-plugin-astro": "^0.14.1", |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Astro v5 btw.
I wished to use shorthand syntax for
x-on:
but I can't because VS Code syntax highlighting goes weird, and sometimes Prettier fails to format the file. The code still works on the live site with Alpine.js.Simple string, Shorthand
❌ VS Code ✅ Prettier ✅ Alpine
Simple string (in or not in JS block), Longhand
✅ VS Code ✅ Prettier ✅ Alpine
Template literal, Shorthand
❌ VS Code ❌ Prettier ✅ Alpine
Template literal, Longhand
❌ VS Code ❌ Prettier ✅ Alpine
Template literal in JS block, Longhand
✅ VS Code ✅ Prettier ✅ Alpine
Note
I don't know if this is a misconfiguration on my end, or it's a general problem with Alpine or Astro. Maybe I just need your help. :)
Beta Was this translation helpful? Give feedback.
All reactions