SyntaxHighlighter

Wednesday, 22 June 2011

How to Blog source code

In my first blog post earlier today I had to find a way to post some code for a script that I'd written.  I found a few suggestions, some of the popular ones being:

  1. http://alexgorbatchev.com/SyntaxHighlighter/
  2. https://gist.github.com/
  3. http://codeformatter.blogspot.com
After trying option 1, I eventually settled on option 3.  Why?  Because all I want to do is copy and paste a script into a blog without context highlighting.  The other thing I want is for people to be able to copy and paste the code into notepad again.  Option 3, the code formatter, is perfect for this requirement.

No comments:

Post a Comment