How to post XML or HTML code on Blogger
Since my site is contains article about programming. I often post sample sourcecode, XML and HTML scripts. My previous dilemma was, I can't simply copy and paste the codes directly to blogger editor because it will translate all entities enclosed with greater & less than sign such as <element>. The simplest way to do it is to encode the XML/HMTL code first using encoder tools which are available online.
Here's a step-by-step procedure:
1. Go to http://centricle.com/tools/html-entities/

2. Copy and Paste your code on the textbox then click encode.
3. Copy the encoded code to your Blogger editor.
That's It. Problem solved. Good Luck
No comments:
Post a Comment