pushqrdx / vscode-inline-html

🎨 Adding Syntax Highlighting, Emmet, IntelliSense support for ES6 Template Strings in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=pushqrdx.inline-html
GNU General Public License v3.0
54 stars 15 forks source link

Support for script tag? #42

Open niklasgrewe opened 11 months ago

niklasgrewe commented 11 months ago

Hi, thank you very much for creating this vs code extension. I use it every day for my work. But i miss one thing: syntax highlighting and code intellisense for <script> tags like:

const template = () => html`
  <script>
    console.log(navigator.userAgent)
  </script>
`

To be honest, it's quite annoying when you don't get any code suggestions etc.. Especially with the many DOM Apis that would be really helpful.

I would be very happy if inline html could support this in the future

pushqrdx commented 11 months ago

I'll try to investigate this soon, and I agree that would be quite useful. I recall giving this feature a go a while back but not sure what blocked me from finishing it.

Anyway glad you're enjoying using inline html and sorry for the late reply

tpougy commented 1 month ago

Any updates on this issue? I would be awesome to support script tags inside .html or .jinja2 files

[edit]

I found that this plugin https://github.com/0x00000001A/es6-string-html supports script tags!

pushqrdx commented 1 month ago

@tpougy sadly I still haven't had the time to work on it