system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
cmd: 

Direktori : /usr/local/cwpsrv/var/services/pma_19-08-2023.bak/js/transformations/
Upload File :
Current File : //usr/local/cwpsrv/var/services/pma_19-08-2023.bak/js/transformations/xml.js

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * XML syntax highlighting transformation plugin
 */
AJAX.registerOnload('transformations/xml.js', function() {
    var $elm = $('#page_content').find('code.xml');
    $elm.each(function () {
        var $json = $(this);
        var $pre = $json.find('pre');
        /* We only care about visible elements to avoid double processing */
        if ($pre.is(":visible")) {
            var $highlight = $('<div class="xml-highlight cm-s-default"></div>');
            $json.append($highlight);
            CodeMirror.runMode($json.text(), 'application/xml', $highlight[0]);
            $pre.hide();
        }
    });
});