So after registering my URL and installing wordpress I started thinking about what I would write about. I decided that I will write general ramblings about being a freelance .NET developer having a strange infatuation with the Macbook pro, the iPad and the iPhone.

Next to that I also will write more technical blogs about .NET development, where I will insert C# source code. To keep the source code readable and to make use of a (sort of) color coding I decided to search for a plugin that would help me with that.

Luckily I found SyntaxHighlighter which did the trick for me! It isn’t 100% what I want but it comes close to this. You just have to put two tags around your source code, letting WordPress know what is code and what is not and that’s it! You can even let WordPress know which language it is so the right words will be hightlighted.

I put a small C# code snippet below to show what I mean.
Nicely done right?!

private static string MakeFirstUpper(string name)
   if (name == null) return "";
   if (name.Length <= 1) return name.ToUpper();
   Char[] letters = name.ToCharArray();
   letters[0] = Char.ToUpper(letters[0]);
   return new string(letters);

Tags: , , , ,

Leave a Reply