Highlight.js syntax definition for GraphQL
npm install highlightjs-graphqlhighlight.js syntax definition for GraphQL.
For more about highlight.js, see https://highlightjs.org/
For more about GraphQL, see https://graphql.org/
Simply include the highlight.js script package in your webpage or node app, load up this module and apply it to hljs.
If you're not using a build system and just want to embed this in your webpage:
``html`
type="text/javascript"
src="/path/to/highlightjs-graphql/graphql.js"
>
If you're using webpack / rollup / browserify / node:
`javascript
var hljs = require("highlightjs");
var hljsDefineGraphQL = require("highlightjs-graphql");
hljsDefineGraphQL(hljs);
hljs.initHighlightingOnLoad();
``