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)
251 {
252 FileAttributes flags;
253 flags = dsInfo.Attributes;
254 if (flags == FileAttributes.ReadOnly)
255 {
256 flags &= ~FileAttributes.ReadOnly;
257 }
258 dsInfo.Attributes = flags;
259 }
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.