json_editor.js 477 B

1234567891011121314151617
  1. /* vim: set expandtab sw=4 ts=4 sts=4: */
  2. /**
  3. * JSON syntax highlighting transformation plugin
  4. *
  5. * @package PhpMyAdmin
  6. */
  7. AJAX.registerOnload('transformations/json_editor.js', function () {
  8. $('textarea.transform_json_editor').each(function () {
  9. CodeMirror.fromTextArea(this, {
  10. lineNumbers: true,
  11. matchBrackets: true,
  12. indentUnit: 4,
  13. mode: 'application/json',
  14. lineWrapping: true
  15. });
  16. });
  17. });