Just thought I'd post some help about linking the AMXX Compiler into Crimson Editor and having Crimson capture output (for those who dont know):
Note: Use attached images as reference if needed..
First, make sure the Source Code file you wish to compile is in the same directory as the 'amxxsc.exe' compiler...
Then, open up your Crimson Editor, then go to the MenuBar and click "Tools-->Preferences", and a window will open.. On the Left-Side of the window there is a "Categories" section. Expand the section called "Tools" and select "User-Tools".. The window should now look similar to
Example 1 from images below.
Now, the next thing you do, is enter the text for the "Menu Text" section which can be whatever you want (basically a Title for the custom Tool).. In
Example 2 you can see I titled mine "Small C Compiler (AMXX 1.0)"
Now, the next field (textbox) is called "Command" and to the far-right of it there is a button with an elipses (3 dots; ... ), click it and then Browse to your 'amxxsc.exe' compiler (the one in the same directory as your Source File). Now your AMXX Compiler is linked to Crimson Editor.. But we still need to customize it a bit more and tell Crimson how to use it...
So next is the "Argument" field, which is what Crimson will pass as arguments to our 'amxxsc.exe' compiler at compile-time. Normally, the complimentary 'compile.exe' file would be used for this, but we will ignore that file completely and let Crimson do that job... You could specify the arguments yourself, or just copy and paste this:
$(FileName) -ocompiled\$(FileTitle).amxx
I believe that is pretty self-explanitory and there is no need to change it, so on we go...
The next field is called "Initial Dir" and is what it says; The Initial Directory of the compile task (a relative path from the Source Code file to the Compiler), and as I mentioned in the beginning to put the Source Code file in the same directory as the compiler so as to make this step easier, and if you have them both in the same directory then copy and paste this:
$(FileDir)
The last field is "Hot-Key" and is probably already set for you (if not, hold the CTRL key, and press 1, or 2, or 3, etc..), so now all you have to do is activate the Hot-Key to start compiling your plugin!!
But wait, one last thing to do: Make sure the checkboxes "Capture output" and "Save before execute" are checked!!!
You're Done!! To test it out, copy a .sma file to your compiler directory, open the .sma file in crimson editor, and activate the Hot-Key (Ctrl+1) and wait for the output!! It should look similar to my
Example 3 from below...
I hope that made sense and helps some of you!! I find it very convenient!!