VS like code highlighting in WordPress

In the wordpress plugins directory, different source highlighting plugins are found. I tried some of them but was not happy 100% as none of them colors C#, XAML etc. source code like it is colored in Visual Studio.
Finally i found this nice website, which converts sourcecode into HTML 4.01.

http://www.manoli.net/csharpformat/

Remains including the provided csharp.css in the header.php of your current WordPress theme and off you go:

C#

public class OhHai
{
   private string _msg = "oh hai!";

   public void SayHello()
   {
      Console.WriteLine(_msg);
   }
}

Yay! (Almost) like in VS ;-)

Update 1.06.2009: Using SyntaxHighlighter Plus instead now.

Share and Enjoy:
  • Digg
  • TwitThis
  • del.icio.us
  • Facebook
  • DotNetKicks
  • Google Bookmarks

0 Response to “VS like code highlighting in WordPress”


  • No Comments

Leave a Reply