Skip to content
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

Support for script tag? #42

Open
niklasgrewe opened this issue Aug 17, 2023 · 3 comments
Open

Support for script tag? #42

niklasgrewe opened this issue Aug 17, 2023 · 3 comments

Comments

@niklasgrewe
Copy link

niklasgrewe commented Aug 17, 2023

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
Copy link
Owner

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
Copy link

tpougy commented Jun 6, 2024

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants