Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X
Some new tricks

Teaching the blog some new tricks

Year, I know. This blog is not really used as often as I hoped I would. I have quite some material on my hard drive and in my brain that I'd like to dump here: Example scripts for science, some django stuff and so on. But for now, at least one new post: I've taught the blog some new tricks. Let's go through them one by one.

1 Restructured Text

The first thing was that I changed away from markdown syntax for my entries to RestructuredText. The reason for this is pretty simple: I prefer the syntax (it is much easier to read in text form) and it offers more flexibility. What kind of flexibility? Read one.

2 Support for code snippets

Following along the lines of Josh VanderLinden's excellent post I implemented syntax highlighting using pygments. This allows me to show code snippets in various languages, like for example python:

k = "hello world"
print k.title()

Or for example LaTex:

e^{i \pi} + 1 = 0

I like it a lot, this will make posting programming stuff a lot easier.

3 Latex support

The last new trick I want to rant about is LaTeX support. For example, the above formula looks like this in the blog:

Those three changes all together will make it a lot easier to post about scientific stuff in the future. Let's see if I do it this time.

blog comments powered by Disqus