Code to html converter

1.3k views Asked by At

What is good free tool (both online, offline) to convert code (could be also html code) text snippet (already formatted) to html with code highlighting (keywords at least) and keep original formatting (as html snippet already) to make it possible to insert to blog?

4

There are 4 answers

0
oopbase On

If you are using WordPress, I can recommend this extension. It should be exactly what you are looking for.

Just an example, taken from the page:

enter image description here

0
Andreas Dolk On

I had good experience google-prettify - the same engine they use here at SO. Based on javascript, should be pretty easy to integrate, even in content management systems (did it with Plone)

1
Chamika Sandamal On

you can do this in visual studio it self. create empty html file and copy the code whatever you want. then paste it in to design view of the above created temporary html file. it will generate the formatting with syntax highlighting.

0
dkackman On

I use SyntaxHighlighter which works quite well on BlogSpot.