Tuesday, September 29, 2009

Source code conversion/formatting online tool for Blogger

If you want to post your source code in blogger.com, you may find out that some of the source code is not displayed correctly. That is because when you input a <, anything following it was treated as a tag untill a > was met. So before you post any text with &, < or >, you should convert them to &amp;, &lt; or &gt; respectively.

Here is a little tool written in Javascript to do the conversion for you:


Add <pre> tag     

I intended to make a tool for a reverse conversion as well. Then I realized that nobody would need it because the browser was already doing it. :D

No comments:

Get This <