posting sourcecode on wordpress

usage:
[code language=”bash”]
your own code here
[/code]

example:

#!/bin/bash
if [ $(date +"%k") -lt 23 ]
then
        if [ $(date +"%k") -gt 5 ]
        then
        echo "do something"
        fi
fi
# this script will not work from 22:00 -6:00

supported languages:
actionscript3
bash
c
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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s