Home > Tip > [Link] Posting Source Code in WordPress

[Link] Posting Source Code in WordPress

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: , , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment

Design a site like this with WordPress.com
Get started