mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
Enable SQL syntax highlighting in View Query (#4184)
* Enable SQL syntax highlighting in View Query * Enable SQL syntax highlighting in View Query
This commit is contained in:
committed by
Maxime Beauchemin
parent
0cb7c5e4a6
commit
9176a4072b
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user