How to Display Code on Blogger Posts
In order to display codes on blogger blog you should convert them to escaped characters and show them under the HTML tag pre as shown below.
code in escaped characters
Now let us check how to convert a script in to escaped form.
How to Convert HTML/Java Script code in to Escaped Characters
You can simply parse a script in to escaped format by following the changes given below.
- < must be changed with <
- > should be changed with >
- “ should be changed with "
- http://www.accessify.com/tools-and-wizards/developer-tools/quick-escape/default.php
- http://codeformatter.blogspot.in/2009/06/about-code-formatter.html
Showing JavaScript and HTML codes in plain text format will be useful for the readers compared to give them codes in image format. It will reduce the time of readers to apply the codes to their blogspot template by just copy and paste it directly from our tutorial. In the same way if you are looking for a way to improve your blogger traffic by optimizing the template, follow the link below.
How to Optimize Blogger Page Title by tweaking Blogger Template
If you are looking for a way to reverse the order of blog posts arranged in blogger, follow the link below.
How to Show Last Blog Articles First on Blogger
You might be curious to know the AdSense potential of your website. To learn the actual earning potential of your website you should find the CPC value of it. To calculate it correctly click on the link below.
Comments
Post a Comment
share your thoughts ....