This set of scripts let you create highlighting syntaxes, then draw a string of text with the syntax highlighted in real time, just as you would use draw_text(x,y,string). Brilliant for any applications or games that involve the user viewing code snippets.
Incredibly easy to use. Create a syntax group with syntax_create(), add colour groups with syntax_add_group(), then add keywords to the group with syntax_add_keyword(). Draw the syntax highlighted code in the draw event, with draw_text_syntax().
I have added GML's syntax as an example (included in this asset). It currently uses Game Maker Studios dark colour scheme.