No worry :)
I will style the gmlIdent then, thanks for the advice :)
indieklem
Creator of
Recent community posts
This is exactly the code I have.
Local var are not highlighted, only the class "gmlIdent" is added.
You can see it live here: https://indieklem.com/randomize-value-in-array-with-game-maker/
JS is here: https://indieklem.com/wp-content/themes/indieklem/js/gml_highlight.js
Hi,
On this webpage : https://indieklem.com/creating-a-grid-with-game-maker/ I have the following code:
i < gridWidth
as you can see in my website, this is converted to
<
Do you know how I can fix this?
Hi,
I've setup the .js lib on my website (running on wordpress - https://indieklem.com/).
I don't know how to highlight Instance variable (the one in blue in the GMS editor).
On yal.cc website (https://yal.cc/gamemaker-variable-references-2023/) they are highlighted, but I don't find how to do it in the doc.
Thanks.
Hi,
I was following the web version of gml_string and I think there is an error in the getting started part:
for (let el of document.querySelectorAll("pre:not(.gml)")) { el.classList.add(".gml"); el.innerHTML = gml_string.renderToHTML(el.innerHTML, "gml"); }
This return:
"Uncaught TypeError: tkk is undefined"
"renderToHTML /js/gml_string.js:993"
To fix this error here is my code:
for (let el of document.querySelectorAll("code:not(.gml)")) {
el.classList.add("gml");
var tks = [];
gml_string.parse(el.innerHTML, tks); el.innerHTML = gml_string.renderToHTML(tks, "gml");
}
Look like it was passing the wrong arg to the function renderToHtml(), tokens (tks) where missing.
Thanks for the plugin anyway, it was a bit difficult to setup cause of this but everything look fine now!
Thanks for playing, and thanks for the words!
Suzon (https://www.instagram.com/isitblueorgreen/) drew all the sprites with Aseprite, it was the first time she did that.