--> Formatted Code Snippets - Impersonation Failure

Formatted Code Snippets

In past posts I've used Jean-Claude Manoli's CSharpFormat to insert formatted code into blog posts.

I see that Omar Shahine wrote a very useful add-in to Windows Live Writer to allow you to post formatted code directly from WLW using CSharpFormat. The add-in can be downloaded from the Windows Live Gallery.

You can either embed the CSharpFormat stylesheet in every post or if you're using Community Server add the stylesheet to your blogs custom css section which will ensure code always comes out nicely formatted with line numbers and the works...

   1:          static void Main()
   2:          {
   3:              Console.WriteLine("It's even got alternate line background colors!");
   4:          }
 
Filed under: , , ,

Comments

# Adri said:

Thanks to Armand for the link to his previous post on where to find the C# code editor plugin. Man I

Tuesday, December 05, 2006 9:08 AM
# Adri said:

Thanks to Armand for the link to his previous post on where to find the C# code editor plugin. Man I

Tuesday, December 05, 2006 9:31 AM