xml_editor.js 412 B

12345678910111213141516
  1. /* vim: set expandtab sw=4 ts=4 sts=4: */
  2. /**
  3. * XML editor plugin
  4. *
  5. * @package PhpMyAdmin
  6. */
  7. AJAX.registerOnload('transformations/xml_editor.js', function () {
  8. $('textarea.transform_xml_editor').each(function () {
  9. CodeMirror.fromTextArea(this, {
  10. lineNumbers: true,
  11. indentUnit: 4,
  12. mode: 'application/xml',
  13. lineWrapping: true
  14. });
  15. });
  16. });