GML syntax highlighter
A downloadable userscript
This userscript adds syntax highlighting for a number of GameMaker-related community forums:
- forum.yoyogames.com (official community)
- /r/gamemaker subreddit
- forum.hellroom.ru (one of the larger Russian communities)
Has separate syntax color schemes for dark and light site themes,
- Dark theme is based on the standard colors in GameMaker Studio 2.
- Light theme is based on my running edit of classic GM color scheme.
If desired, you can add a userstyle on top of the userscript to customize colors, or edit the userscript to support additional websites.
On the technical side, this is based on the parser that I use for my blog posts - the algorithm builds a list of tokens by looping through the code, does minor post-processing (to highlight local variables), and outputs a small pile of <span> elements and text nodes.
Also see syntax highlighting for GameMaker manual.
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.