theNewDynamic / language-hugo-vscode

Adds syntax highlighting to Hugo files in VS Code
https://marketplace.visualstudio.com/items?itemName=budparr.language-hugo-vscode
Apache License 2.0
64 stars 20 forks source link

Possible to make it work with JavaScript? #19

Open hrishikesh-k opened 3 years ago

hrishikesh-k commented 3 years ago

Hello.

This extension works great for HTML files. Thank you for that. However, I was wondering if it's possible to be able to clear off those errors from my workspace when using Hugo snippets in JavaScript (via <script> tags or external JS files).

Currently, this is happening:

in HTML file: image

in JS file:

image

Because of this, I'm unable to use syntax and error highlighting of VSC as I don't realise if I have actually made a syntax error or if it's just because of Hugo's snippets. Thus, if you'd be able to add ability to highlight in these files, it'd be just amazing!

larsendaniel commented 3 years ago

Yes! I just came here to post the same issue and am happy to see someone else already reported it. It would be great if this could get fixed somehow.

gonsen71 commented 2 years ago

Would be nice also to add it for CSS!

Screenshot-2022-01-21T17:30:47

Also needs resources.ExecuteAsTemplate to process it.