Skip to content

Commit

Permalink
Enable SQL syntax highlighting in View Query (apache#4184)
Browse files Browse the repository at this point in the history
* Enable SQL syntax highlighting in View Query

* Enable SQL syntax highlighting in View Query
  • Loading branch information
betodealmeida authored and mistercrunch committed Jan 11, 2018
1 parent a0f4dea commit 68fbde8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import SyntaxHighlighter, { registerLanguage } from 'react-syntax-highlighter/dist/light';
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 github from 'react-syntax-highlighter/dist/styles/github';
import CopyToClipboard from './../../components/CopyToClipboard';

Expand All @@ -12,6 +13,7 @@ import { t } from '../../locales';

registerLanguage('markdown', markdown);
registerLanguage('html', html);
registerLanguage('sql', sql);

const $ = window.$ = require('jquery');

Expand Down

0 comments on commit 68fbde8

Please sign in to comment.