melonJS icon indicating copy to clipboard operation
melonJS copied to clipboard

Syntax highlighting in tutorial

Open austynmahoney opened this issue 15 years ago • 3 comments

A suggestion for the tutorial and any other page on the website that has code is to add some kind of syntax highlighting to the page. This way it would be easier to catch code mistakes and documentation/tutorials would be much easier to follow. There are a lot of JS highlighters out there that could be used.

austynmahoney avatar Oct 17 '11 14:10 austynmahoney

I agree, it took a couple of minutes to figure out what had changed in the code each time there was a change. Eventually I had to look at my code and the tutorial side by side just to figure out what was changing.

prestonberrett avatar Oct 17 '11 15:10 prestonberrett

you're right, but everyone his own domain of expertise, I tried to use some CSS magic to highlight the JS code in the tutorial, but failed at that time, so I let it like this (with some simple highlighting).

But if you have any good recommendation, feel free to propose something, or even do it ! Any contribution is more than welcome :)

Cheers.

ghost avatar Oct 18 '11 06:10 ghost

Finally ! https://github.com/obiot/melonJS/commit/73de7ab92197ba8a0bc4c9a9b288013544db3cbf

ghost avatar Mar 19 '12 17:03 ghost