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

highlighting in html files #30

Open
LarsDenBakker opened this issue Mar 7, 2019 · 2 comments
Open

highlighting in html files #30

LarsDenBakker opened this issue Mar 7, 2019 · 2 comments
Labels
help wanted Issues identified as good community contribution opportunities

Comments

@LarsDenBakker
Copy link

LarsDenBakker commented Mar 7, 2019

Currently this plugin only works inside .js files. It would be useful if this could work inside .html files as well. I write lit-html inside single html file snippets for demos a lot.

For example:

<html>
  <head>
    <script type="module">
      import { html, render } from 'lit-html';
      
      const myTemplate = html`
        <div>Foo</div>
      `;// <-- not highlighted

      render(myTemplate, document.body);
    </script>
  </head>
  <body></body>
</html>
@mjbvz mjbvz added the help wanted Issues identified as good community contribution opportunities label Mar 20, 2019
@hyusetiawan
Copy link

i am also having the same issue, does it currently only works with .js files?

@alimertcakar
Copy link

Also does not work with ${Button} (Preact)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues identified as good community contribution opportunities
Projects
None yet
Development

No branches or pull requests

4 participants