How to add [CODE] block to a Blogger post? The answer.


By default when you add any type of code like javascript, html, css, or blogger you have blank lines and the message : "Post was not saved due to form errors". I explain here how to add it.

Translate your code to HTML

We will translate the less-than sign "<" and greater-than sign ">" of markups to HTML entities. By this way your code will not be readable as code by Blogger, it will be only html elements. To go faster we will an on-line tool.
  1. Go to simplebits.com, past your code,
  2. Copy the result filtered into your blog page in edit HTML mode,
  3. Remove all the <br /> . That's all.

0 comments:

Post a Comment