by Daniel Lubarov

/* GML 2 Color */


Home

Welcome to GM2Color!

GML2Color is a free utility which converts GML code from plain text into a choice of HTML, BBcode, or Wikidot markup. The tool originally took around four days to create, but since that time it's undergone a number of improvements. I have to say, the most exciting part of the process was categorizing the 1,812 syntax constructs which comprise the language. I hope you enjoy using this site as much as I enjoyed building it!

I've made the code lists publicly available for download (see the left navigation bar) in case anyone wishes to take on a similar project without having to organize all of the GML constructs. The PHP source code is also up for download.


Let me see?! I want to see!!

Below is an example of code generated using GML2Color.

var ii;

room_caption = "Prime Number Gen (" + string(fps) + " FPS)";

// A cool color-shifting button
for (ii = 0; ii < btn_count; ii += 1)
  btn_hue[ii] += random(100/(max(fps,30)+1));

/*
Blah blah current_time blah blah
Blah ds_list_add(id,val) blah // blah
*/

if running {
  start_timestamp = current_time;
  for (ii = 0; ii < freq; ii += 1) {
    if is_prime(num_current) {
      ds_list_add(lst_primes,num_current);
      prime_count += 1;
    }
    num_current += 2;
    // Determine time used in calculating last prime
    if ii == freq - 2 then prev_timestamp = current_time;
    if ii == freq - 1 then last_time = current_time - prev_timestamp;
  }
  total_time += current_time - start_timestamp;
}


Ew, it's a bug! I found a bug! Ewww!

I am human; I make mistakes from time to time. If you find any bugs, please let me know.


   Shout Box   


Youcanwin: No matter how talented a man may feel he is in bed, he defines his sex by his erection, by its strength and hardness http://www.farebunk.com/
Youcanwin: No matter how talented a man may feel he is in bed, he defines his sex by his erection, by its strength and hardness http://www.farebunk.com/
Youcanwin: No matter how talented a man may feel he is in bed, he defines his sex by his erection, by its strength and hardness http://www.farebunk.com/
CoolGamrSms: I think the bots figured out a way in.
Alexander_Q: Excellent work. One thing that needs attention - the italicised green comment text is a little hard to read (when the font hasn't been changed to emulate the GM editor)
~Dannyboy~: Pretty good, any chance of making on that uses a CSS style sheet?
Daniel: Hm, are you embedding the code in a webpage? If so, what font is in use? Please give more detail and I'll look into it.
Dainel: @Dannyboy, it could be done, but I think I'm already teasing the threshold of feature creep a bit... I'm afraid it may make the website less easy to use, particularly for users who aren't familiar with HTML/CSS.
gamer freak: Hello?
Daniel: Hi =)
Alexander_Q: Hey Daniel. Didn't bold the "{" and "}". Cheers
a','b','c','d') LIMIT (0: just testing ";..;"
T-Dub: You should create an smf mod for this
gamemoon: works fine ^^
Mcoot: It came up with a whole bunch of color = "hexidecimal color index", font settings and randomly placed strings from my input...





What do cows drink?