diff --git a/src/webui/src/components/Help/index.js b/src/webui/src/components/Help/index.js index 9061cc395..7525e80d8 100644 --- a/src/webui/src/components/Help/index.js +++ b/src/webui/src/components/Help/index.js @@ -1,10 +1,13 @@ import React from 'react'; -import SyntaxHighlighter from 'react-syntax-highlighter/dist/index'; +import SyntaxHighlighter, {registerLanguage} from 'react-syntax-highlighter/dist/light'; import sunburst from 'react-syntax-highlighter/src/styles/sunburst'; +import js from 'react-syntax-highlighter/dist/languages/javascript'; import classes from './help.scss'; +registerLanguage('javascript', js); + const Help = () => { return (