This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 9176a40 Enable SQL syntax highlighting in View Query (#4184)
9176a40 is described below
commit 9176a4072b93b2a6aba3457859bd6083083b0de6
Author: Beto Dealmeida <[email protected]>
AuthorDate: Wed Jan 10 20:49:28 2018 -0800
Enable SQL syntax highlighting in View Query (#4184)
* Enable SQL syntax highlighting in View Query
* Enable SQL syntax highlighting in View Query
---
superset/assets/javascripts/explore/components/DisplayQueryButton.jsx | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx
b/superset/assets/javascripts/explore/components/DisplayQueryButton.jsx
index 06a0164..cd93028 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');
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].