Fix #71: add code_of function

In case Pygments is installed, the code is colorized first. Corresponds to issue #71.