
(click image for more info and example)
(Not really too sure where to post this, but because it's relevant to a published GMHTML project I'll post it here)
I painstakingly went through the manual and got syntax highlighting for every single command in GMHTML5 (that I know of) to work on websites. This is important for anyone who publishes a game and releases the source code along with it. In the event that you want to deploy the source code along with the project, you can now display beautified code to help your visitors out! The following is the how-to, depending on what kind of website you are running:
This is a patch to the CodeCitation plugin for Joomla sites. In order to patch:
For Joomla Sites:
http://afoobar.com/foo/gmdn/misc/gml-highlighting/gml-for-joomla.zip
- Download the CodeCitation Plugin for Joomla
- Install the plugin into your Joomla site (how to install extensions)
- Download and unpack the patch above
- Navigate to your root directory and upload the folder "plugins" onto your root directory (click yes to overwrite)
- Go to your plugin manager in the backend of Joomla (Menu > Extensions > Plugin Manager) and make sure "Content - CodeCitation" is enabled
- Go into its preferences and change the "Default language to cite" to "gml"
- In any of your articles copy/paste your GML script inbetween "{ codecitation }{ /codecitation }" (without the spaces)
For all other sites:
http://afoobar.com/foo/gmdn/misc/gml-highlighting/gml-for-syntaxhighlighter.zip
This download patches SyntaxHighlighter, which allows you to add syntax highlighting to any website which allows external javascript calls
- Download the SyntaxHighlighter
- View the Installation Page to understand how to install it to your website
- Download the script below
- Add shBrushGML.js to the scripts folder
- See this page to learn how to integrate it with one of the major web platforms, orthis page to use it in a fully custom website.
Edited by OMGCarlos, 07 October 2011 - 08:43 AM.











