Saturday, January 12, 2013

How to display code on the web properly

When i started this blog, one of the problems i soon ran into was: how to display highlighted source code on my blog. You cant just copy it, because then the syntax-colors disapear and  it's unreadable.


blogspot.com has a [code] tag you can use, but it doesnt really do much, just changes the font really.

But i have found the solution:
http://tohtml.com/
It is a great site! It takes source code in pretty much any language and spits out HTML with beautiful highlighting that you can just copy and paste right to you blog.
Job done in short of a second.
http://tohtml.com/



1 comment: