Text formatting

This includes #97. It also adds support for docstring formatting, introduce in https://github.com/idris-lang/Idris-dev/pull/980 .