Skip to content

JS within HTML is commented using HTML comments #30

Description

@josephrocca

I have a .html file that contains only this text:

<script>
  let a = 1;
  let b = 2;
</script>

If I highlight the two lines of javascript and press alt+/, it turns into this:

<script>
 <!-- let a = 1; -->
 <!-- let b = 2; -->
</script>

when it should instead turn into this:

<script>
  // let a = 1;
  // let b = 2;
</script>

Not a huge deal but it would be nice if it could handle scripts embedded within HTML like this.

Thanks for the great plugin in any case! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions