diff --git a/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx b/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx index 06a0164117af3..cd930282132ec 100644 --- a/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx +++ b/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx @@ -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'; @@ -12,6 +13,7 @@ import { t } from '../../locales'; registerLanguage('markdown', markdown); registerLanguage('html', html); +registerLanguage('sql', sql); const $ = window.$ = require('jquery');