Skip to content

Instantly share code, notes, and snippets.

@vunb
Last active August 29, 2015 14:00
Show Gist options
  • Save vunb/da4471a0634f083664ef to your computer and use it in GitHub Desktop.
Save vunb/da4471a0634f083664ef to your computer and use it in GitHub Desktop.
Wordpress: Hướng dẫn cấu hình language cho syntaxHighliter
http://en.support.wordpress.com/code/posting-source-code/
To accomplish the above, just wrap your code in these tags:
[code language="css"]
your code here
[/code]
The language (or lang) parameter controls how the code is syntax highlighted. The following languages are supported:
actionscript3
bash
clojure
coldfusion
cpp
csharp
css
delphi
erlang
fsharp
diff
groovy
html
javascript
java
javafx
matlab (keywords only)
objc
perl
php
text
powershell
python
r
ruby
scala
sql
vb
xml
If the language parameter is not set, it will default to "text" (no syntax highlighting).
Code in between the source code tags will automatically be encoded for display, you don't need to worry about HTML entities or anything.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment