contextera

Friday, March 30, 2012

Syntax Highlighter

In my earlier posts, i used to write code in a plain way, which on copy pasting, used to loose its indentation. After some google searches and some surprising results, I came across this link which guides you in allowing people to add synatx highlighted code snippets to both websites and blogs. I am talking about Syntax Highlighter. Below is just a sample code to test it with some Python code. Syntax Highlighter is a java script library and it supports around 20 programming languages. Refer Syntax Highlighter supported languages
Refer http://geektalkin.blogspot.in/2009/11/embed-code-syntax-highlighting-in-blog.html for a detailed explanation on how to set syntax highlighter on your blog or website

No comments:

Post a Comment