Syntax Highlighting?

I thought this sounded like a fun project to play with. Here’s a simplified solution. (Surprisingly fast too)
It could likely use some better error checking, and I can’t get the first word to color correctly if there’s not a leading space… but feel free to mess with it.

HighLighting.xojo_binary_project