Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Highlight keywords in PL/SQL CodeMirror

  • Loading branch information...
commit 17ef1f0dfcae2210a169dd55afa6bad1b58dd815 1 parent 5ac72dd
@vrana vrana authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  adminer/sql.inc.php
View
2  adminer/sql.inc.php
@@ -224,7 +224,7 @@
<script src="<?php echo "$codemirror_path/mode/$codemirror_mode/$codemirror_mode.js"; ?>"></script>
<script type="text/javascript">
if (window.CodeMirror) {
- var codeMirror = CodeMirror.fromTextArea(document.getElementById('query'));
+ var codeMirror = CodeMirror.fromTextArea(document.getElementById('query'), { mode: 'text/x-<?php echo $codemirror_mode; ?>' });
<?php foreach ($error_lines as $line) { ?>codeMirror.setLineClass(<?php echo $line; ?>, '', 'error');<?php } ?>
}
</script>
Please sign in to comment.
Something went wrong with that request. Please try again.