Thursday, August 12, 2010

Source Code Highlight in Blogger

I always wanted to have syntax highlighting in my blog posts but I thought Blogger didn't allow it. Thankfully I was wrong.

The code snippet below shows how pretty it can look. I am using SyntaxHighlighter version 3.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Core.EFT.XXX
{
    /// 
    /// This class will decode the XML from the XXX service.
    /// 
    public class XXXTCPResponse : TCPResponse
    {
        #region Properties
        /// 
        /// The request type.
        /// 
        public string RequestType { get; set; }
        #endregion
    }
} 

I will probably start posting more C#, C++ and Java code snippets on this blog.

No comments: