Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 648 Bytes

File metadata and controls

21 lines (14 loc) · 648 Bytes

Install

JSON within HTML Script (Syntax Support)

Syntax highlighting support for HTML <script></script> tags using application/json and application/ld+json attributes.

Why?

VS Code does not yet? support JSON syntax highlighting on HTML script tags using the type="application/json" attribute.

Example

<script type="application/json">
  /* JSON HERE */
</script>

<script type="application/ld+json">
  /* JSON HERE */
</script>