hasura-rest-hands-on/src/highlight.js

22 lines
464 B
JavaScript
Raw Normal View History

2021-07-16 22:11:10 +09:00
/**
* @license
* highlight.js
* License: BSD-3-Clause
* Copyright (c) 2006 Ivan Sagalaev
*/
import hljs from "highlight.js";
import vue from "highlight.js/lib/languages/xml";
/**
* @license
* highlightjs-graphql
* License: MIT
* Copyright (c) 2019 David Peek
*/
import { definer as graphql } from "highlightjs-graphql";
Object.entries({ vue, graphql }).forEach((language) => {
hljs.registerLanguage(...language);
});
Object.assign(window, { hljs });