If you are giving tutorial about adding HTML/JavaScript codes then you have to show your codes in proper ways that's why I am giving today's tutorial. The installation is so easy just follow my step to install.

Installation -
1. Log in to Blogger Dashboard > Design > Edit Hml
2. Check Expand Widgets and find ]]></b:skin>
3. Paste below code before ]]></b:skin>

/*--Code View--------------*/
code {
color: #000099;
font: 108% "Courier new",Courier,mono;
padding: 0 2px;
white-space: nowrap;
pre code {
-moz-box-shadow: 0 0 10px #DDDDDD;
background: url("http://2.bp.blogspot.com/-SEx0wApLIcI/TwVyjZ6VIRI/AAAAAAAAAO4/HNHKxURtzIU/s1600/btsnts_color_background.png") repeat scroll 0 0 #FFFFFF;
border: 2px solid #CCCCCC;
clear: both;
color: #333333;
display: block;
font-size: 12px;
line-height: 15px;
margin: 10px auto 10px 30px;
overflow: auto;
padding: 15px;
white-space: pre;
width: 85% !important;
word-wrap: break-word;
code .comment {
color: #888;
code .class, code .rules {
color: #ff00ff;
font-size: 100%;
code .value, code .title, code .string {
color: #0000FF;
code .tag {
color: #000099;
code .keyword {
color: #000099;
.html .attribute {
color: #006600;

                                           Live Demo

* Important Tips -
1) If you want to show HTML/JavaScript codes in blogger posts then 1st 
Escape them.

2) Before adding codes in post you have to type <pre><code> before code starts 
and </pre></code> after post ends. 

Post a Comment

  1. tried this on my test blog and all though the code i added appeared there was no box around it or coloured background to highlight the code...also there was no need to use the pre code tags before or after or Escape the code first.
    why isn't my code sitting inside the coloured box like yours does in the preview and on your site?

  2. <div class="doc">
    Bản đẹp(hơi chậm 1 chút :) )</h2>
    <div class="content">
    <iframe frameborder="1" height="480" scrolling="yes" src="http://commondatastorage.googleapis.com/itchio/html/22851/index.html" width="480"></iframe> </div>

  3. Nice post but not working properly in my blog

  4. Thanks for tremendous article. Very instructive post. Really found this information practicable. responsive web development

  5. Learning new technolgoy would help oneself at hard part of their career. And staying updated is the only way to survive in current position. Your content tells the same. Thanks for sharing this information in here. Keep blogging like this.

    Best JAVA Training institute in Chennai | Best JAVA Training in Chennai | Hadoop training in chennai

  6. The escaped code will be generated in the next one. Easy isn't it.
    psd to html5

  7. Java is programing language which is used in almost all the applications and games which are on the web. Java is being used extensively and it will be used extensively in near future. So getting trained in Java will surely be helpful.
    Java training in Chennai | Java training institute in Chennai | Java course in Chennai

  8. The HTML5 is developed to solve the compatibility problem that affects the current standard of html4. The goal of html5 is to support the audio, video and canvas tags.
    HTML5 training in Chennai | Html5 training chennai

  9. More informative article.Thanks for sharing this valuable post.It helps me to get a bright career.Keep sharing like this.

    Java Training in Chennai
    | Java courses in Chennai

  10. You have shared about the installation methods.It is really useful.It is working and i have bookmarked this page for my reference.
    Java Training in chennai | Java course in chennai

  11. Thanks admin.I have read your blog.It is really useful to me.I preferred it and i shared this installation methods to my team members.Keep update your blog.
    Java Training in chennai | Java course in chennai | Best JAVA Training institute in Chennai

  12. My Arcus offer java training with 100% placement. Our java training course that includes fundamentals and advance java training program with high priority jobs. java j2ee training with placement having more exposure in most of the industry nowadays in depth manner of java

    java training in chennai

  13. Different levels of testing will be using in different fields. Joinfita offers a world class training on software testing with face to face interaction. It offers huge career prospects for talented professionals to be skilled software testers.
    Software Testing Training in chennai | Selenium Training in Chennai | Digital Marketing Training in Chennai

  14. SEO is the best way to accomplish traffic to a website in search engines organic results page. You have explained it very well in here. Thanks for sharing this. You have provided really a great content in here.
    SEO Training in Chennai | Android Training in Chennai | Java Training in chennai

  15. Actually i am new to java script and other computer programming language.can anyone explain why we were using html to build a webpage?why we cant build it using c,c++ programming language?
    JAVA Training in Chennai | Best JAVA Training in Chennai

  16. Java is written once and used anywhere, means general it is platform independent so it can run any platform like in android, linux, etc..,.It Is general purpose programming language. It was Origin by two programming language c and c++(c with classes).Thank you for your wonderful blog of information.
    JAVA Training in Chennai | JAVA Training

  17. Very interesting content which helps me to get the indepth knowledge about the technology. To know more detils about the course visit this website.
    hadoop training in chennai | Big Data Training in Chennai


If you want to be informed about any replies then check "Notify me" option (present at lower right corner of comment box and it will display if you are logged in to your google account).PLEASE DO NOT SPAM