Separate code for "messages" from the code for "highlight code" into two files. Everything is in messages.ts currently.