As you may have (or have not) noticed, I gave a bit of overhaul to my blog lately. I was in mood for something more airy than what I had before. So here it is.
But I’d like to share a bit of details about one specific aspect of the update. This is a programmers blog. And I mostly blog about code. In a previous version of my blog engine I used Vim for code highlighting. I was pretty happy with the results (to be honest, I liked it mode then what I have now). But it proved to be somewhat heavy on the server as I had to run Vim for every piece of code in my posts to give it some color. If not for caching it might be a disaster in terms of productivity. Vim takes long to start and even after it finishes whatever it does the result still needed some treatment. So the first rendering of the blog post could take substantial amount of time. In new version I use CodeRay. It doesn’t support every programming language on the planet but most of what I use is in there. It highlights a bit different parts of code than Vim does, but still it’s better than nothing. Also it’s much faster. Cold start with CodeRay is comparable to cached one with Vim. So that’s definitely an improvement.
Another part related to code presentation is the code box itself. Besides the colored code itself, now you can link to every line of code in posts.
And last but not least. Code in feeds is colored too. At least in Google Reader. It looks like Mail.app, Safari and Firefox (and likely many others) strip down all the styling. Please, let me know if it doesn’t work in your reader.
So that was a short overview of changes and one of not many posts without code. Stay tuned.