WordPress博客代码高亮插件SyntaxHighlighter Evolved的使用方法

我的博客是用Wordpress搭建的,正需要代码高亮插件,Google一下发现一款SyntaxHighlighter Evolved代码高亮插件不错。相信我,这款代码高亮插件功能足够强大、并且简单易用,绝对值得推荐。

一、 SyntaxHighlighter Evolved插件的使用方法

1. [#php]your code here[/php#]
2. [#code lang="js"]your code here[/code#]
3. [#sourcecode language="plain"]your code here[/sourcecode#]
// 注意:把前面和后面的两个“#”删除掉

二、 SyntaxHighlighter Evolved插件的编程语言及语言别名对照表

编程语言 语言别名
ActionScript3 as3, actionscript3
Bash/shell bash, shell
ColdFusion cf, coldfusion
C# c-sharp, csharp
C++ cpp, c
CSS css
Delphi delphi, pas, pascal
Diff diff, patch
Erlang erl, erlang
Groovy groovy
JavaScript js, jscript, javascript
Java java
JavaFX jfx, javafx
Perl perl, pl
PHP php
Plain Text plain, text
PowerShell ps, powershell
Python py, python
Ruby rails, ror, ruby
Scala scala
SQL sql
Visual Basic vb, vbnet
XML xml, xhtml, xslt, html, xhtml

Leave a Reply

Your email address will not be published. Required fields are marked *