Wednesday, December 24, 2008

Code highlighting in blogspot

Adding syntax highlight to blogger is very simple, first of all you need to download SyntaxHighlighter.

Now extract the contents of the package and upload the Scripts and Styles folder to any host or website which can be linked from your blog.

To make it work, you will need to edit your blog's template and add the following code after the -- end outer-wrapper -- tag:





To add some java code to your blog use:





The list of supported languages and their aliases can be found at the syntaxhighlighter wiki

No comments: