好用的wordpress代码高亮插件
插件介绍
wordpress代码高亮插件WP-CodeBox提供干净的语法高亮和Ajax技术先进或职位的源代码在页面嵌入特征。
它支持流行的语言突出显示行数,代码下载广泛,复制到剪贴板,codebox崩溃,关键词自动链接到API手册和保持格式而从浏览器的代码复制片段。
插件下载
wordpress代码高亮插件WP-CodeBox下载地址:https://wordpress.org/plugins/wp-codebox/
插件使用方法
基本用法
<pre lang="LANGUAGE" line="1" file="download.txt" colla="+"> 要书写的代码</pre>
可能的参数:
lang="LANGUAGE" - LANGUAGE is a GeSHi supported language syntax.
file="download.txt" - The file will create a code downloading attribute.
line="N" - The N is the starting line number.
colla="+/-" - The +/- will expand/collapse the codebox.
line,file,colla is optional.
file="download.txt" - The file will create a code downloading attribute.
line="N" - The N is the starting line number.
colla="+/-" - The +/- will expand/collapse the codebox.
line,file,colla is optional.