add代码高亮

This commit is contained in:
浪子
2024-07-02 09:26:49 +08:00
parent b647b0cf80
commit 8449fd35ca
8 changed files with 17698 additions and 6 deletions
+4
View File
@@ -33,6 +33,10 @@ function themeConfig($form) {
array('0'=> _t('否'), '1'=> _t('是')),
'0', _t('是否显示文章目录'), _t('选择“是”将在文章页面显示文章目录(仅在宽度大于1400px的设备中显示)。'));
$form->addInput($showtoc);
$showprism = new Typecho_Widget_Helper_Form_Element_Radio('showprism',
array('0'=> _t('否'), '1'=> _t('是')),
'0', _t('是否代码高亮'), _t('选择“是”将引用prism.js代码高亮显示'));
$form->addInput($showprism);
}
function get_post_view($archive) {
$cid = $archive->cid;