If you write programming related posts in your blog, you are most probably using Google Syntax Highlighter to highlight your code snippets. In case if you don’t, it’s a set of javascripts that allows you to add syntax highlighting for source code that you post on your blog. It supports a large number of programming languages. After installing “Google Syntax Highlighter for WordPress” plugin (If you are using WordPress of course), all you got to do is to enclose your code inside “pre” tags, add a name attribute with value ‘code’ and then set the language of programming code in class attribute.
Ex:-
<pre name="code" class="java"> .... </pre>
But there is a slight problem. When you use it with WordPress WYSIWYG post editor all the name attributes get removed. Therefore every time you change the post using WYSIWYG editor you have to go back to HTML view and add name attributes again. Which is really a pain if your post is a large one with lots of text and code snippets.
Tags: Computer Programming, Google Syntax Highlighter, Google Syntax Highlighter for WordPress, JavaScript, oogle Syntax Highlighter for WordPress, Programming, Programming Language, Source Code, WordPress, WYSIWYG


Royal College which started in year 1835 is celebrating its 175th anniversary in year 2010. Need not to say that this is a massive milestone and time to celebrate service rendered by Royal College to its past and present students, and to this country.







