1.In the blogger, go to design then Click on Layout tab ->Edit HTML
2.open url: http://syntaxhighlighter.googlecode.com/svn/trunk/Styles/SyntaxHighlighter.css
copy all (css) and paste in you blog at end of existing styles (css)
3.put following codes in <head>
<script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js'/>
<script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCpp.js'/>
4. put following things in <body>
<script language="javascript">
dp.SyntaxHighlighter.BloggerMode();
dp.SyntaxHighlighter.HighlightAll('code');
</script>
5. its done.
6. Put your updated code between:
<pre name="code" class="Cpp">
….My code here…
</pre>
You can use different "Class" for different languages.
Here's a list of supported languages and their aliases:
| Language | Aliases |
| C++ | cpp, c, c++ |
| C# | c#, c-sharp, csharp |
| CSS | css |
| Delphi | delphi, pascal |
| Java | java |
| Java Script | js, jscript, javascript |
| PHP | php |
| Python | py, python |
| Ruby | rb, ruby, rails, ror |
| Sql | sql |
| VB | vb, vb.net |
| XML/HTML | xml, html, xhtml, xslt |