A while ago I started a blog. In the beginning I came across a visual studio add-in for showing sources as HTML. I just had to test it. You can find the tool here CopySourceAsHtml.
A result of this add-in is the one below.
250 private static void MakeFileWritable(FileSystemInfo dsInfo)
252 FileAttributes flags;
253 flags = dsInfo.Attributes;
254 if (flags == FileAttributes.ReadOnly)
256 flags &= ~FileAttributes.ReadOnly;
258 dsInfo.Attributes = flags;
I think it looks pretty kewl. It wasn’t a smart thing to use the horrible colours on the download page. Luckily the html will look exactly the same as it looks in visual studio.