Commit 604091f8 authored by Jérome Perrin's avatar Jérome Perrin

sql_browser: enable matchbrackets code mirror addon

parent 7241e3be
......@@ -35,6 +35,8 @@
<script type="text/javascript" src="codemirror/addon/dialog/dialog.js"></script>
<script type="text/javascript" src="codemirror/addon/search/searchcursor.js"></script>
<script type="text/javascript" src="codemirror/addon/search/search.js"></script>
<script type="text/javascript" src="codemirror/addon/cm_edit/matchbrackets.js"></script>
<link rel="stylesheet" href="codemirror/addon/hint/show-hint.css">
<script src="codemirror/addon/hint/show-hint.js"></script>
<script src="codemirror/addon/hint/anyword-hint.js"></script>
......@@ -113,6 +115,7 @@
$(function() {
editor = CodeMirror.fromTextArea(document.getElementById("query"), {
lineNumbers: true,
matchBrackets: true,
viewportMargin: Infinity,
extraKeys: {"Ctrl-Space": "autocomplete", "Ctrl-Enter": redraw, "Alt-Space": redraw},
mode: "text/x-mariadb"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment