First Post and CopySourceAsHtml Visual Studio Plugin

by rsutton 31. December 2008 00:54

Well I finally have my blog up and running again.  I have been playing with the CopySourceAsHtml plugin for Visual Studio so my code samples will look much better when I post.  Here is an example.

    1     protected override void Render(HtmlTextWriter writer)

    2     {

    3       if (!Page.IsPostBack && !Page.IsCallback)

    4       {

    5         HtmlGenericControl ul = DisplayBlogroll();

    6         StringWriter sw = new StringWriter();

    7         ul.RenderControl(new HtmlTextWriter(sw));

    8         string html = sw.ToString();

    9 

   10         writer.WriteLine("<div id=\"blogroll\">");

   11         writer.WriteLine(html);

   12         writer.WriteLine("</div>");

   13       }

I tried a number of plugins for Windows Live Writer that do code highlighting, but they usually don’t support languages like Python which I have been playing a lot with lately.  Plus I like to show off my cool color scheme :)

Tags:

Development

Comments are closed

Powered by BlogEngine.NET 1.4.5.0
Theme by Extensive SEO

Profile

Member of the Church of Jesus Christ of Latter-Day Saints, Developer and IT Professional