Last active
August 29, 2015 14:00
-
-
Save vunb/da4471a0634f083664ef to your computer and use it in GitHub Desktop.
Wordpress: Hướng dẫn cấu hình language cho syntaxHighliter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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