Install SyntaxHighlighter for Programming Codes in Blogger:
Step-1:
First of all we will install the syntaxHighlighter in the blogger. So, to Install just go to the blogger Dashboard’s Template tab and first take the backup of the template to be on safe side. Here is the post that explains how to take backup, Click Here
Step-2:
Save the template.
You just installed syntaxHighlighter in your blog.
To use syntax highlighter while writing a blog post just switch to HTML mode and paste your code between pre tags as shown below.
Your Code Goes here......Here define the brush class according to your the code you are going to embed, for this example I have selected javascript.
Check out the available brush class list for syntaxHighlighter-
SyntaxHighlighter Brushes
choose a class name (original or alias name) and go ahead.
Example:
Code:
<pre class="brush:php"> echo "hello"; </pre>
Output:echo "hello";
Thank you 🙂