From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- srcs/phpmyadmin/js/transformations/json_editor.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcs/phpmyadmin/js/transformations/json_editor.js (limited to 'srcs/phpmyadmin/js/transformations/json_editor.js') diff --git a/srcs/phpmyadmin/js/transformations/json_editor.js b/srcs/phpmyadmin/js/transformations/json_editor.js new file mode 100644 index 0000000..affae4b --- /dev/null +++ b/srcs/phpmyadmin/js/transformations/json_editor.js @@ -0,0 +1,17 @@ +/* vim: set expandtab sw=4 ts=4 sts=4: */ +/** + * JSON syntax highlighting transformation plugin + * + * @package PhpMyAdmin + */ +AJAX.registerOnload('transformations/json_editor.js', function () { + $('textarea.transform_json_editor').each(function () { + CodeMirror.fromTextArea(this, { + lineNumbers: true, + matchBrackets: true, + indentUnit: 4, + mode: 'application/json', + lineWrapping: true + }); + }); +}); -- cgit