Showing posts with label HTML code. Show all posts
Showing posts with label HTML code. Show all posts

Wednesday, November 11, 2009

How to properly write code in blogger blog post? (Part 2/2)

Writing code in post part 2/2.
In first part we told you how to write html/javascript code in blogger blog post. In this part we will show you how to properly write the code in post i.e. how to make your code standout the regular text.
write html/javascript code in blogger blog postAfter you have placed your code in the post, highlight it so that users can easily spot it. Often while reading others post I have face this peculiar problem. The authors do not highlight their code. This is specially problematic when they are referring to a single line of code. You can apply a lot of styles make it bold, increase or decrease font, change the font altogether... Pretty old stuff...isn't it. This is how we like it.





Consider this (Style 1)

//your code here

Or this (Style 2)

//your code here

Or even this... (Style 3)

Title here

//your code here


Neat code presented elegantly. Read on to know how to apply these styles.

Tuesday, November 10, 2009

How to write html/javascript code in blogger blog post?

write html/javascript code in blogger blog postIf you have ever tried writing HTML/Javascript code in your blogger blog post then you might have found that it does not appear as code in the post. Instead the code is interpreted and displayed.
The above problem can be simply fixed by replacing < with &lt; and > by &lt; . Here we are providing a few elegant ways to do this.
Older post Home
 

Recent Posts

| © 2009 BloggerFunda.blogspot.com | Template by Blogger | Enhanced By Abhishek Kumar |
| Site best viewed in Firefox@1024X768 or higher resolution. |