Skip to content
Snippets Groups Projects
Commit 04554917 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[sql mode] Fix demo page

parent 431a54bb
No related branches found
No related tags found
No related merge requests found
......@@ -53,9 +53,22 @@ SELECT SQL_NO_CACHE DISTINCT
<code><a href="?mime=text/x-cassandra">text/x-cassandra</a></code>,
<code><a href="?mime=text/x-plsql">text/x-plsql</a></code>.
</p>
<p>
<strong>Tests:</strong>
<a href="../../test/index.html#sql_*">normal</a>,
<a href="../../test/index.html#verbose,sql_*">verbose</a>.
</p>
</article>
<script>
window.onload = function() {
var mime = 'text/x-mariadb';
// get mime type
if (window.location.href.indexOf('mime=') > -1) {
mime = window.location.href.substr(window.location.href.indexOf('mime=') + 5);
}
window.editor = CodeMirror.fromTextArea(document.getElementById('code'), {
mode: mime,
indentWithTabs: true,
smartIndent: true,
lineNumbers: true,
matchBrackets : true,
autofocus: true
});
};
</script>
</article>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment