If you wanna add some computer language to your post, and want it looks like in some of code editor(with syntax colored and line number), you should try this–SyntaxHighlighter 1.1.1
It supports the following languages (the alias for use in the post is listed next to the name):
- C++ —
cpp,c,c++ - C# —
c#,c-sharp,csharp - CSS —
css - Delphi —
delphi,pascal - Java —
java - JavaScript —
js,jscript,javascript - PHP —
php - Python —
py,python - Ruby —
rb,ruby,rails,ror - SQL —
sql - VB —
vb,vb.net - XML/HTML —
xml,html,xhtml,xslt
To use it,
just download the zip file,
unzip it,
upload to your “plugins” folder in /yoursitename/wp-content/plugins filepath,
active it,
Just wrap your code in [sourcecode language='css']code here[/sourcecode] to your posts or pages.
PS:The sourcecode language(like ‘css’, counldn’t be ‘cascading style sheet’ or some thing else)must be exactly the same spell as shown above.


Leave a Reply