How to insert code into wordpress

http://stackoverflow.com/questions/13247984/how-to-insert-code-into-wordpress

You just include the following lines before your code. I too did a big research on this and finally I got!! 🙂

[code language="csharp"]
//your code comes here
[/code]

Worpress give us the facility to avoid worrying about code highlighting. If your code is in between these blocks then it will automatically render as per the language you specified. It can support many lanugages.

Some of them are..

html

javascript

java

javafx

matlab (keywords only)

objc

perl

php

For more information see this link

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