Tuesday, October 7, 2008

How to Install SyntaxHighlighter?

I always wanted to post code snippets on my blog here on Blogger and was searching for a way to do so. Today I just happened to knock on Google's door with the right query string and here I am ready to do it (Check my previous post if you want to see a sample)

Here are the exact steps I followed:

  1. I downloaded the SyntaxHighlighter rar from the project's google code page.
  2. Uploaded the rar to my hosting@bluehost to link the javascript etc. required for the library to function, unzipped it and mapped the URLs paths to here.
  3. Followed the very simple tutorial here. Thanks to the author for the wonderful and easy to follow tutorial.
And now I can post as much code I want. I plan to dissect the library as soon as I can get some free time but in case you are facing any problems with the installation/usage, we can work together to fix that. Although, I am stuck with the problem of slow load but I guess I know a way around it. More on this later.

2 Comments:

Bhavesh Sanghvi said...

I was using SyntaxHighlighter at OpenBiomind-GUI blog (http://openbiomind-gui.blogspot.com/). I did not feel that it takes much loading time.

Another thing you may like to try is Diqus (http://disqus.com/). It is not for syntax highlighting. It helps you to manage comments properly, in case you expect a lot of comments. You'll find a sample on the OpenBiomind-GUI blog.

Chetan said...

Thanks for the update. I am setting up my shop here and will look into it for sure.

Post a Comment

Labels