Code Highlighting In Blog

I’ve found a very pretty plugin Crayon Syntax Highlighter written by Aram Kocharyran ( The first impression is very good, it makes the appearance of C# or T-SQL code in blog posts really better. Thanks, Aram!

If you have a blog and install this plugin, you need to change your posts, so the code would be shown correctly (for example, angle brackets, i.e. “greater than” or “less than” mathematical signs). The most important is to change <pre> tags, so they should include class and decode attributes that reflect programming languages. So the tag in default configuration should look like <pre class=”lang:c# decode:true ” > for C# or <pre class=”lang:tsql decode:true ” > for Transact-SQL code.

Leave a Reply

Your email address will not be published. Required fields are marked *