1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 19:44:00 +02:00

New plugin: Use Monaco Editor for syntax highlighting

This commit is contained in:
Jakub Vrana
2025-04-01 16:37:12 +02:00
parent a03b05ceb4
commit d9956c8a5c
3 changed files with 74 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ import '<?php echo $this->editorRoot; ?>/prism/languages/sql.js';
adminerHighlighter = els => els.forEach(el => {
const mode = (
/jush-js/.test(el.className) ? 'json' : (
/jush-\w*sql/.test(el.className) ? 'sql' : (
/jush-(\w*sql|oracle|clickhouse|firebird)/.test(el.className) ? 'sql' : (
''
)));
if (mode) {