vscode-inline-html icon indicating copy to clipboard operation
vscode-inline-html copied to clipboard

Support for script tag?

Open niklasgrewe opened this issue 2 years ago • 3 comments

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

niklasgrewe avatar Aug 17 '23 19:08 niklasgrewe

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

pushqrdx avatar Aug 20 '23 17:08 pushqrdx

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!

tpougy avatar Jun 06 '24 19:06 tpougy

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

pushqrdx avatar Jun 12 '24 09:06 pushqrdx