Visual Studio Tool: Generate html from your coding

Posted in on 4/1/2014

If you writing technology blog, you might need to convert your actual coding to html. I found this tool Code4Blog very useful.

Basically, it base on your select coding, generate html. You can just copy html to your blog.

If you want to try it, you can click following link to download. Code4Blog

After you download, and install it to your visual studio. If you want to covert entire file to HTML. Go to Tools - Save Code as HTML, than it'll open windows inside visual studio both contains HTML and actual view.

If you want to convert select part code, you can just copy that section, like following. 

After that, click Tools - Save Code as HTML. Then, you can get HTML like following. 

The code generated is not beatiful, but you don't have time and don't care HTML inside it generated. It could help you. But, actually, i don't like code generated like this. not clean.

 
 fieldset
 {
     border:1px solid #ddd;
     padding:0 1.4em 1.4em 1.4em;
     margin:0 0 1.5em 0;
 }
 
 legend
 {
     font-size:1.2em;
     font-weight: bold;
 
 }
 
 textarea
 {
     min-height: 75px;
 }
 
 .editor-label
 {
     margin: 1em 0 0 0;
 }