Archive

Posts Tagged ‘WordPress’

[Link] Posting Source Code in WordPress

October 15, 2011 Leave a comment

Posting Source Code

[ sourcecode language=”css” ]
your code here
[ /sourcecode ]

The language parameter controls how the code is syntax highlighted. The following languages are supported:

actionscript3
bash
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).

Categories: Tip Tags: , , , ,
Design a site like this with WordPress.com
Get started