Implemented colour previews in parser. Close #335.