LavIgor, большое спасибо за разъяснения!
Сильно не смейтесь. Попробовал так:
Открыть styles/all/template/quickreply_plugins.js
Найти
Код: Выделить всё
/* global quickreply, grecaptcha, insert_text, split_lines */
Заменить на
Код: Выделить всё
/* global quickreply, grecaptcha, pfjs, insert_text, split_lines */
Найти
Добавить перед
Код: Выделить всё
/***********************/
/* prettify.js Plugin */
/***********************/
$(window).on('load', function() {
if (pfjs) {
var qrHighlightCode = $(document).ready(function() {
$('div.codebox').find('code').addClass('prettyprint');
prettyPrint();
});
};
quickreply.$.qrPosts.on('qr_completed', qrHighlightCode);
quickreply.$.mainForm.on('ajax_submit_preview', qrHighlightCode);
}
});
Почистил кэш d ACP (администраторском разделе) - результата нет.
В расширении \ext\ppk\google_code_prettify\styles\all\template\event\overall_footer_body_after.html такой код:
Код: Выделить всё
<script src="{ROOT_PATH}ext/ppk/google_code_prettify/js/prettify.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(
function()
{
$('div.codebox').find('code').addClass('prettyprint');
prettyPrint();
}
);
// ]]>
</script>
Не подскажите как правильно сделать?