How to add Syntax Highlighter to Blog:-
Login to Blogger Dashboard. Create a "New Post" Paste the following code in "Edit HTML" .
<pre ,times,serif;="" new="" roman="" style="-moz-border-radius: 0px 25px 0px 25px; white-space:pre-line; background-color: #e3e3e3; height: 50px; padding: 15px 5px 5px;white-space: normal; width: 100%px;"> ..Your text Here..</pre>
<pre ,times,serif;="" new="" roman="" style="-moz-border-radius: 30px 30px 30px 30px;border-radius: 25px 25px 25px 25px; background-color: #e3e3e3; height: 50px; padding: 15px 5px 5px; white-space: pre-line;-moz-border-radius: 25px 25px 25px 25px;border-radius: 25px 25px 25px 25px; width: 100%px;"> ..Your text Here.. </pre>
<pre ,times,serif;="" new="" roman="" style=" border-left: 8px solid #1C86EE; -moz-border-radius: 25px 25px 25px 25px; white-space: pre-line; background-color: #e3e3e3; height: 90px; padding: 15px 5px 5px; width: 100%px;border-radius: 25px 25px 25px 25px;"> ..Your text Here.. </pre>
<pre ,times,serif;="" new="" roman="" style=" border-left: 8px solid #1C86EE; background-color: #e3e3e3; height: 50px; padding: 15px 5px 5px; white-space: pre-line; width: 100%px;" >..Your text Here..</pre>
<pre times,serif;="" new="" roman="" style="color: white; border-left: 8px solid #e3e3e3; white-space: pre-line; background-color: #262626; height: 50px; padding: 15px 5px 5px; width: 100%px;"> ..Your text Here..</pre>
<pre ,times,serif;="" new="" roman="" style="color:black; border-left: 8px solid #8B0000; background-color: #EEE685; height: 50px; padding: 15px 5px 5px; white-space: pre-line; width: 100%px;">..Your text Here.. </pre>
<pre style="color:black; border-left: 16px solid #FFFF00; white-space: pre-line; background-color:#c5c1aa; height: 50px; padding: 15px 5px 5px; width: 100%px;-moz-border-radius:30px; ">..Your text Here.. </pre>
Note:
- To change background color simply change #262626 to any desired value.
- Adjust height: 50px to any desired value.
- Replace ..Your Text Here.. with your code that you want to highlight.
How to use these code:-
- Click Edit / HTML option of the compose tab.
- Paste any of the above code in it.

0 comments:
Post a Comment