Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions client/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ const ids = {
error: '#error'
};

/**
* Define languages that are not included in highlight.js by default
*/
function defineThirdPartyGrammars() {
const graphql = require("highlightjs-graphql")
graphql(hljs)
}

defineOtherLanguages();

/**
* On document load, try to load languages and themes, try to load the user's
* preferences if previously set, and assign click handlers to each button.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"browserify": "16.5.0",
"clean-css-cli": "4.3.0",
"highlight.js": "9.16.2",
"highlightjs-graphql": "^1.0.2",
"jquery": "3.4.1",
"juice": "5.2.0",
"uglify-es": "3.3.9",
Expand Down