Backup Your Template before highlighting syntax with background colors
Steps:
- Go to Blogger > Design > Edit HTML
- Now search for ]]></b:skin> and just above ]]></b:skin> , paste the code below,
.myCode {
padding: 10px;
border-left:6px solid #336699;
color: #000;
width: 85%;
font-style: italic;
margin: 5px auto 15px;
background: # f7f7f7 ;
}
padding: 10px;
border-left:6px solid #336699;
color: #000;
width: 85%;
font-style: italic;
margin: 5px auto 15px;
background: # f7f7f7 ;
}
<div class=’mycode’> Insert Your Syntax (code or script ) here <div>
Customization
Here are some must commonly used colors for highlighting codes or script.#DDDDD (For Black+White)
#F7F7F7 (For half white)
#FFFFFF (For white)
#111111 (For Black)
#F7F7F7 (For half white)
#FFFFFF (For white)
#111111 (For Black)