Posts Tagged ‘code’

Code blogging with Typo

Monday, December 12th, 2005

One of the things I found annoying about WordPress and Blogger was the lack of support for code snippets in blog posts.

The latest version of Typo has support for syntax highlighted code blocks using the syntax. Line numbers can also be displayed. Currently Ruby, Yaml and XML are supported, but as this feature gets more popular, other languages will probably be added. This macro uses Ruby’s Syntax module.

In other Typo-related news, the Typo Theme Contest is over. The results have been published. Although the winner is certainly a fantastic theme, my personal favorite is The Lucid. Unfortunately, it isn’t finished yet. I hope the author will have some spare time on his hands to complete his work.

Today me and Takis were discussing how mathematics courses could be made more interesting. I remembered once seeing a video lecture by Edsger Dijkstra in which he explained what has thrilled him mathematically. The theorems and algorithms he discussed (although not very difficult) prove that mathematics doesn’t have to be dull or boring. So I searched Google for Dijkstra lecture. What surprised me was that one of my old blog posts showed up as the second result. It’s a small web after all ;-)