Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>GraphQL Script TagNew to Visual Studio Code? Get it now.
GraphQL Script Tag

GraphQL Script Tag

panoply

|
1,421 installs
| (0) | Free
GraphQL Syntax highlighting support for html script tags using application/graphql mime type attributes.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Install

GraphQL syntax support in HTML Scripts

Syntax highlighting support for HTML <script></script> tags using application/graphql and application/ld+json attributes. Uses an grammars provided by graphql-for-vscode by Kumar Harsh and thus uses this extension as a dependency. Does not support IntelliSense (yet) just provides syntax highlighting.

Why?

Made available as per request from a developer.

Related Extensions

  • vscode-json-script-tag
  • vscode-markdown-script-tag

Example

<script type="application/graphql">
  query User($id: ID!)
    user(id: $id) {
      name
      picture
    }
  }
</script>

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft