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 :)