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

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


Leave a Reply

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

You are commenting using your 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 )

Connecting to %s