Ads 468x60px

Labels

Showing posts with label Blogger. Show all posts
Showing posts with label Blogger. Show all posts

Friday, May 4, 2012

Adding a Syntax Highlighter to your Blogger blog

Syntax or code highlighting is important particularly when you need to show code examples on your blog. It is always a big task to read codes on a blog or a website without syntax highlighting, though they are enclosed with code tags. By integrating the syntax highlighter on a blog or a website, readers can read the code examples easier. There are so many free syntax highlighting scripts available on many websites. Most of the scripts are written in JavaScript, though some of them are powered by other programming languages such as Phyton or Ruby. I believe "SyntaxHighlighter by Alex Gorbatchev" is the most common syntax highlighting script used by most of us. It supports a lot of different languages and you can easily create new "brush" for your language if it is not supported by default.
 

Sample text

Sample Text

Sample Text