-
Notifications
You must be signed in to change notification settings - Fork 0
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
Requests for improvements #2
Comments
ACSS code is highlighting but not validating. At least when it is in the head of an HTML document and inside Wish I could show you a picture... Oh wait, I can... http://dragontheory.com/D7460N/index.html.screen.JPG Here is the same HTML...
|
When I put the code into a .acss file, then it doesn't correctly highlight the lines where you have the target selector and the action command on one line, which I can fix. Eg.:
More importantly for you though, as it is currently it will only work with .acss files, not .html files. I will have to check to see if it's possible to extend html to handle embedded ACSS, as that will be a common use. Each file in VS Code has syntax highlighting based on the extension of the file, like ".html". I would need to set one up to work with .html, or modify the existing one to work with .html and .acss files. When you say validating, do you mean syntax checking? I've not put any syntax checking in there yet - it's just the highlighting that it should be doing at the moment. Syntax checking is a separate beast which is a project in itself. It would be good to have though. |
This line:
... should have set-attribute instead of add-attribute. |
I don't see anything else wrong in terms of syntax. |
I just committed a fix to highlight the commands when they get wrapped onto the line above. But that won't help you if it's embedded in an html file. That will be the next priority - to get it working with embedded ACSS. It didn't even cross my mind for some reason. Thanks for checking out the extension :) |
Huh. I thought the embedded ACSS highlighting in the screen shot IS working. Not perfect but I figured it was maybe falling back to CSS or something similar for lines it didn't recognize. I assume no highlighting would be similar to just plain grey text with no colors?
I think I mean syntax checking... Each one of those orange and red squiggly underlines in the screen shot is a warning or error respectively, according to the VSCode. So, yeah, syntax validation in HTML world and syntax checking in IDE world seem the same. CSS syntax checking is enabled by default in HTML files so I assume there is a way to do the same for ACSS syntax checking in HTML files?
Fixed. Thank you for that! |
If anyone sees any specific errors or wants something specific highlighted, please let us know in this issue.
If anyone wants to help with code contributions for this repo then that would be cool.
The text was updated successfully, but these errors were encountered: