diff options
Diffstat (limited to 'srcs/phpmyadmin/js/transformations/xml_editor.js')
| -rw-r--r-- | srcs/phpmyadmin/js/transformations/xml_editor.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/srcs/phpmyadmin/js/transformations/xml_editor.js b/srcs/phpmyadmin/js/transformations/xml_editor.js new file mode 100644 index 0000000..7d2533d --- /dev/null +++ b/srcs/phpmyadmin/js/transformations/xml_editor.js @@ -0,0 +1,16 @@ +/* vim: set expandtab sw=4 ts=4 sts=4: */ +/** + * XML editor plugin + * + * @package PhpMyAdmin + */ +AJAX.registerOnload('transformations/xml_editor.js', function () { + $('textarea.transform_xml_editor').each(function () { + CodeMirror.fromTextArea(this, { + lineNumbers: true, + indentUnit: 4, + mode: 'application/xml', + lineWrapping: true + }); + }); +}); |
