Add support for colours in the plain text hook. Closes #47