Partial Docco port with no Pygmentize dependencies