[explore] fix json highlighting for Druid queries (#4201)

This commit is contained in:
Maxime Beauchemin
2018-01-11 15:41:28 -08:00
committed by GitHub
parent 4b0f252170
commit 5916291901
2 changed files with 3 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import SyntaxHighlighter, { registerLanguage } from 'react-syntax-highlighter/di
import html from 'react-syntax-highlighter/dist/languages/htmlbars';
import markdown from 'react-syntax-highlighter/dist/languages/markdown';
import sql from 'react-syntax-highlighter/dist/languages/sql';
import json from 'react-syntax-highlighter/dist/languages/json';
import github from 'react-syntax-highlighter/dist/styles/github';
import CopyToClipboard from './../../components/CopyToClipboard';
@@ -14,6 +15,7 @@ import { t } from '../../locales';
registerLanguage('markdown', markdown);
registerLanguage('html', html);
registerLanguage('sql', sql);
registerLanguage('json', json);
const $ = window.$ = require('jquery');