This page answers questions you may have surrounding GMLsnip and the tools it offers.

The About page details the features of this tool.

What is GMLsnip?

GMLsnip allows GameMaker developers to create HTML-embeddable, stylized GameMaker Language code snippets. This is useful for the tutorial-making community, particularly. Novice game makers referencing tutorials online may have an easier time following along if the code they see on the webpage closely resembles the code they see in the vanilla GMS2 IDE.

Why did you make GMLsnip?

My name is Zack Banack and I've been making games for over a decade, both as a hobby and a job. The GMLsnip tool was originally going to be exclusive to The Step Event, a GameMaker tutorial series side project of mine. But, I quickly realized a lot of people could get use out of a utility like this.

Why is this free?

The GameMaker community is an altruistic community. I'm keeping GMLsnip free because I believe in free coding resources. My mission, since starting The Step Event, has been to create the tutorials and resources I wish I had when I was new to game development. This includes the means of how information is consumed.

How can I support GMLsnip?

If you want to support this project, consider disabling ad blocking software for the website. If you're feeling highly generous and want to keep this project up and running (hosting costs money), you can make a donation. Donations are completely optional but highly appreciated!

Can I change the appearance of GML on other websites?

Yes! GMLsnip offers a browser Extension/Addon. Using the Google Chrome browser Extension or Mozilla Firefox browser Addon, it's possible to change GML codeblocks on websites like the GameMaker subreddit, the official YoYo Games forums, and the official YoYo Games documentation.

What does the GMLSnip Browser Addon do?

Using the browser Extension/Addon, you'll be able to see GameMaker Language code displayed in your browser just as you would in the Studio IDE. Transform dull GML code into pretty-printed, colorful code snippets across the web. Add a coat of fresh paint to the /r/gamemaker, the YoYo Games Forum, and the official GameMaker docs. Learn more about the browser Extension/Addon.

Why doesn't my code look right?

There may be syntax edge-cases that break the parser. Also, this utility is not a code validator nor a linter. It will not "beautify" your code, clean it up, or debug. GMLsnip simply analyizes your code and stylizes it to the best of its abilities.

Why am I getting a message saying I need JavaScript?

GMLsnip needs JavaScript in order to make sense of the GML code you input. It runs a lexer, something that tokenizes (categorizes), strings of text. That's how this tool is able to distinguish variables from functions and numbers from strings. Fortunately, after the code snippet is generated, JavaScript is no longer needed.

Why is the output code so big?

Because the snippets generated by GMLsnip do not require JavaScript, they cannot be pretty-printed on the fly. While this means they're viewable to a larger percentage of the internet, it comes at the expense of being more bloated. The elements in the HTML, CSS, and clipboard script are named the way they are as to have a slim-to-none chance of interferring with anything else on your website. Overkill? Probably.

Why isn't the clipboard working?

While most modern JavaScript-enabled browsers should be able to copy the content via the clipboard button, some (notably, mobile) still fail. Luckily, the code can be manually highlighted and either right-click -> copy'd or ctrl/command + c'd.

Can I remove the attributions and credit in the code?

I highly encourage you to keep the credits and link back to in the code that's generated on this website. If you must remove the credits, then please consider making a donation as compensation.

Is GMLsnip affiliated with YoYo Games or GameMaker?

No. This website is not — nor does it claim to be — affiliated with YoYo Games Ltd., GameMaker: Studio, GameMaker Studio 2, or any related products.

Will my snippets still work if GMLsnip goes down?

Yes! Once you copy and paste the code from this website onto yours, it's completely independent from

The code snippet looks different on my website. Why?

Your website's CSS rules may be overriding GMLsnip's styling. You may be using "!important" rule in your code.

Is this project open source? Can I contribute?

Yes! You can view all the project repositories related to GMLsnip here.

GMLsnip incorrectly linked a function/provided the wrong tooltip description

This project references the GameMaker Language Functions JSON for function-related information, like links and descriptions. If you encounter an issue, please open an issue report on the Github repo.

Does GMLsnip offer an API?

Yes! You can read the documentation and more information about the API on the Docs page.

Where can I reprot a bug or issue?

You can open an issue report on the respective project repository.

Will you add X feature?

Because GMLsnip is a free, hobby project, new features will be added passively. If you have suggestions or recommendations, either try to implementing them yourself or open a feature request on the respective Github project. You can check out a list of GMLsnip-related project repositories.

Can I edit the code this website generates?

You can do with this code as you please, bearing in mind the aforementioned attribution clause. But, if you edit the code, I won't be able to help you if something breaks.

How can I change the colors in the output?

You can change the colors by playing around with the hex # values in the CSS output. For hex colors, I highly recommend another project of mine, 2020 Colors.

Can we affiliate?

For question regarding affiliation, please contact me.