If you do any blogging where you include any kind of source code in your
posts, then the following may be of interest to you. I have a pretty
simple set up using blogger. I configured my blog to use
SyntaxHighlighter. It is all client side, and it was a bit of a pain to
set up. That criticism might however be better directed at blogger. I
noticed on some of the aggregate feeds like at
planet.jboss.org and now
at
jboss.org/rhq that the highlighting is lost. The highlighting also
doesn't render so great on mobile devices. Earlier this evening I
switched over to using
gist.github.com. If you are not familiar with
gist, it is similar to pastebin. There are some really nice things about
gist though. Every gist is a git repo that can be cloned or forked. You
can make edits and add comments as well. It has nice syntax highlighting
for quite a large number of languages. Including a gist in your blog
only involves a few simple steps:
* Create the gist.
* Click on the "embed" link in the upper right corner of the gist window.
* Copy and past the link into your post.
The link looks something like <script
src="https://gist.github.com/2921426.js?file=discovery_component.clj...;.
The syntax highlighting is not lost in the aggregate feeds, and I also
think it looks better on mobile devices as well.
- John