WordPress 代码高亮插件:Pure-Highlightjs(支持可视化下插入代码)
//这是插入代码的显示效果
<?php
$caid=isset($_GET['caid']);
if($caid){
//栏目页
$page_id='catalog';
$index_body='body_catalog.php';
}else{
//首页
$page_id='index';
$index_body='body_index.php';
}
include_once 'header.php';
include_once $index_body;
include_once 'footer.php';
?>
Pure-Highlightjs 一个基于 Highlightjs 实现的 WordPress 代码高亮插件,支持 N 多种语言高亮,还提供多种主题。支持在 WordPress 可视化编辑模式下插入代码。
Pure-Highlightjs 依赖于以下开源项目:
highlight.js https://highlightjs.org
highlight.js 是一个用于在任何 web 页面上着色显示各种示例源代码语法的 JS 项目
安装说明
1. 下载
点击下载 https://github.com/icodechef/…/Pure-Highlightjs_1.0.zip
2. 安装
进入 WordPress 后台管理页面,“插件 》安装插件 》上传插件”,上传刚才下载的 ZIP 文件,然后安装。
或者解压安装包,上传到插件目录,/wp-content/plugins/。
3. 启用
安装完毕后,在已经安装的插件里启用 “Pure Highlightjs”。
如何使用
可直接在可视化编辑界面点击“插入代码”按钮,然后选择代码类型,粘贴代码插入即可:
GitHub 地址:Pure-Highlightjs
代码高亮效果:我的主页
好歌资源网,欢迎分享,欢迎评论,(开通PLUS会员资源免费下 )本站积分兑换是1RMB:1金币。
©下载资源版权归作者所有;本站所有资源均来源于网络和用户上传,仅供学习使用,请支持正版!
好歌源码网 » WordPress 代码高亮插件:Pure-Highlightjs(支持可视化下插入代码)
©下载资源版权归作者所有;本站所有资源均来源于网络和用户上传,仅供学习使用,请支持正版!
好歌源码网 » WordPress 代码高亮插件:Pure-Highlightjs(支持可视化下插入代码)
you are actually a good webmaster. The site loading pace is amazing.
It kind of feels that you are doing any distinctive trick.
Moreover, The contents are masterwork. you have performed a magnificent task in this topic!
Happy to help you!
cialis cialis coupon walmart [url=https://spcialisps.com/#]cialis generic name[/url] cialis no prescription when will cialis go generic
Hello, all is going sound here and ofcourse every one is sharing
information, that’s really excellent, keep up writing.
Would you be keen on exchanging hyperlinks?
The subsequent time I read a blog, I hope that it doesnt disappoint me as much as this one. I imply, I do know it was my choice to read, but I actually thought youd have one thing attention-grabbing to say. All I hear is a bunch of whining about one thing that you would fix in the event you werent too busy in search of attention.
You made some decent points there. I seemed on the internet for the problem and found most people will go along with with your website.