当前编辑器使用的是:AAEditor->块级代码->在3点后面加入语言类
官网下载页面允许用户自行定制所需要的语言种类,官网下载地址如下:

https://prismjs.com/download.html

将Prism的两个文件下载到当前所使用主题的根目录,然后打开当前主题的header.php文件,在代码之前添加如下代码即可:

<link rel="stylesheet" href="<?php $this->options->themeUrl('prism.css'); ?>">
<script src="<?php $this->options->themeUrl('prism.js'); ?>" ></script>

发表评论