From d1b30a58e20d500b72bb49787f88e038ff967b22 Mon Sep 17 00:00:00 2001 From: Conor Hastings Date: Sat, 22 Jul 2017 22:24:02 -0400 Subject: [PATCH] use light version of syntax highlighter --- src/webui/src/components/Help/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 (