Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added graphql language #185

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 defineOtherLanguages() {
alexwforsythe marked this conversation as resolved.
Show resolved Hide resolved
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