Tuesday, July 12, 2011

Syntax Highlighting on Blogger

The easiest way to paste code into blogger with nice syntax highlighting:

  1. Go to http://gist.github.com
  2. Past the code you want to post
  3. Copy the embed tag
  4. Go back to blogger, and select "Edit Html"
  5. Paste the embed tag into your post

In this post you can see some example of code highlighting: http://ddelizia.blogspot.com/2011/07/geocoding-address-with-google-maps-api.html

No comments: