Blods.com

Musings and a place to store stuff

Posting code examples on WordPress

Leave a comment

WordPress includes a neat feature allowing you to paste code into your posts – and allows it to retain its formatting.

An example below – and more details can be found here http://en.support.wordpress.com/code/posting-source-code/

// Hello1.cs
public class Hello1
{
 public static void Main()
   {
      System.Console.WriteLine("Hello, World!");
   }
}

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