phpmyadmin/resources/js/transformations/json.ts
William Desportes 4da3aaaf7a
Merge branch 'QA_5_2'
Already merged in master: https://github.com/phpmyadmin/phpmyadmin/pull/19960
Re-write of the test from 4de9f0f0b1
Merge of 631cac096f
Merge of 58cee9656f but could not find the code to implement

Signed-off-by: William Desportes <williamdes@wdes.fr>
2025-12-29 18:50:41 +01:00

11 lines
288 B
TypeScript

import $ from 'jquery';
import { AJAX } from '../modules/ajax.ts';
import highlightJson from '../modules/json-highlight.ts';
/**
* JSON syntax highlighting transformation plugin
*/
AJAX.registerOnload('transformations/json.js', function () {
highlightJson($('#page_content'));
});