-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Highlight HTML Attribute Values Uniformly #160143
Comments
$ bfg --delete-files id_{dsa,rsa} my-repo.git |
Can you add a small code sample that shows the issue? Also, which theme are you using? |
As far as I'm aware, "less than" and "ampersand" signs must be always quoted. The fact they are often accepted within attributes without quotation is merely a leniency of the HTML parser. |
The spec says:
So I don't know what you mean with quoted, I can't write |
Reading https://dev.w3.org/html5/spec-LC/syntax.html#attributes-0 I agree that This needs to be fixed in https://github.com/textmate/html.tmbundle |
Working with Alpine.js, I noticed that the VSCode HTMl syntax highlighter marks
<
in attribute values in red, everything else in the string (as far as I observed) gets the same orange tone. I don't know if this is meant to highlight an error, but even without Alpine.js,<
is perfectly fine in an attribute, I can even setdata-str="<"
and use that in CSS so I think it would be cool if VSCode just applies the same color to all characters in the string.The text was updated successfully, but these errors were encountered: