首页 > WordPress > wordpress的easy google syntax highlighter插件的使用方法

wordpress的easy google syntax highlighter插件的使用方法

“easy-google-syntax-highlighter”的写法如下:

<pre class=”brush:对应的值;”>代码部分</pre>

下面是对应语言的值,array之内的字符串为brush可用的值,对应的js文件为相应的处理脚本,有兴趣的可以打开来修改。

$brushes = array(‘shBrushAS3.js’ => array(‘as3’, ‘actionscript3’),
‘shBrushBash.js’ => array(‘bash’, ‘shell’),
‘shBrushCSharp.js’ => array(‘c-sharp’, ‘csharp’),
‘shBrushCpp.js’ => array(‘cpp’, ‘c’),
‘shBrushCss.js’ => array(‘css’),
‘shBrushDelphi.js’ => array(‘delphi’, ‘pas’, ‘pascal’),
‘shBrushDiff.js’ => array(‘diff’, ‘patch’),
‘shBrushGroovy.js’ => array(‘groovy’),
‘shBrushJScript.js’ => array(‘js’, ‘jscript’, ‘javascript’),
‘shBrushJava.js’ => array(‘java’),
‘shBrushJavaFX.js’ => array(‘jfx’, ‘javafx’),
‘shBrushPerl.js’ => array(‘perl’, ‘pl’),
‘shBrushPhp.js’ => array(‘php’),
‘shBrushPlain.js’ => array(‘plain’, ‘text’),
‘shBrushPowerShell.js’ => array(‘ps’, ‘powershell’),
‘shBrushPython.js’ => array(‘py’, ‘python’),
‘shBrushRuby.js’ => array(‘rails’, ‘ror’, ‘ruby’),
‘shBrushScala.js’ => array(‘scala’),
‘shBrushSql.js’ => array(‘sql’),
‘shBrushVb.js’ => array(‘vb’, ‘vbnet’),
‘shBrushXml.js’ => array(‘xml’, ‘xhtml’, ‘xslt’, ‘html’, ‘xhtml’));

  1. 还没有评论。
  1. No trackbacks yet.

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: