Extend editor by adding support for text colour, text highlight colour and background colour

Remove state functions since they don't seem to serve any purpose.