WordPress代码高亮插件SyntaxHighlighter的语言别名表
发布日期: 2014-07-15更新日期:2015-08-24
表-1-SyntaxHighlighter中“语言别名”和“语言代码”对应表
语言别名 |
语言代码 |
说明 |
as3 |
as3 |
不知道是否支持AS2? |
actionscript3 |
as3 |
bash |
bash |
竟然还支持Shell. |
shell |
bash |
coldfusion |
coldfusion |
|
cf |
coldfusion |
clojure |
clojure |
|
clj |
clojure |
|
cpp |
cpp |
|
c |
cpp |
|
c-sharp |
csharp |
|
csharp |
csharp |
css |
css |
|
delphi |
delphi |
看来Delphi和Pascal确实有一腿啊! |
pas |
delphi |
pascal |
delphi |
diff |
diff |
|
patch |
diff |
|
erl |
erlang |
|
erlang |
erlang |
|
fsharp |
fsharp |
|
groovy |
groovy |
|
java |
java |
|
jfx |
javafx |
|
javafx |
javafx |
js |
jscript |
从这里可以看出,针对JavaScript的代码,写js行,写javascript行,甚至是微软的jscript都行。 |
jscript |
jscript |
javascript |
jscript |
latex |
latex |
Not used as a shortcode |
tex |
latex |
|
matlab |
matlabkey |
|
objc |
objc |
|
obj-c |
objc |
perl |
perl |
|
pl |
perl |
php |
php |
|
plain |
plain |
|
text |
plain |
|
ps |
powershell |
|
powershell |
powershell |
py |
python |
|
python |
python |
r |
r |
Not used as a shortcode |
splus |
r |
|
rails |
ruby |
针对Ruby的。 |
rb |
ruby |
ror |
ruby |
ruby |
ruby |
scala |
scala |
|
sql |
sql |
|
vb |
vb |
|
vbnet |
vb |
xml |
xml |
针对XML、HTML以及XHTML等,其实都是按照XML来处理的 |
xhtml |
xml |
xslt |
xml |
html |
xml |
xhtml |
xml |
转自 WordPress代码高亮插件SyntaxHighlighter终极使用详解