Skip to content

highlighting in html files #30

Open
@LarsDenBakker

Description

@LarsDenBakker

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions