Where can I find Blitzmax keywords?

BlitzMax Forums/BlitzMax Programming/Where can I find Blitzmax keywords?

Alessandro(Posted 2009) [#1]
Hello,

I'm creating a syntax highlighter for gedit, but I cannot find a complete list of the keywords used by Blitzmax. Can you help me?

Thank you!


ziggy(Posted 2009) [#2]
in the documentation folder: BlitzMax/docs/html/Modules/commands.txt
This file contains a command per line, followed by link to the corresponding help page. This is the file used by MaxIDE, but you have to be sure documentation has been built or this file will be missing!


Warpy(Posted 2009) [#3]
or this. (might be a little bit out of date)


Alessandro(Posted 2009) [#4]
Thank you!
I will use them!


Jim Teeuwen(Posted 2009) [#5]
Edit: I made my own syntax file for Gedit.

here it is:



To make it work, do the following:

1) Save the above xml in a file called 'bmax.lang'.
2) Copy the file into the gedit language files dir.
sudo cp bmax.lang /usr/share/gtksourceview-2.0/language-specs/


3) Add the mime type for .bmx files to /etc/mime.types
sudo echo -e "application/x-blitzmax  bmx"  | sudo tee -a /etc/mime.types


4) Update the mimetype database:
sudo update-mime-database /usr/share/mime


5) Close any instances of gedit you already had open.
6) Open a bmx file in gedit.
7) In Gedit go to the following menu: View->Syntax Highlighting->Sources and select 'BlitzMax'.

You should now have nicely highlighted piece of code :)


edit: Fixed a lil bug in the 'rem/end rem' pattern.
Turns out, you can only have 1 space between 'end' and 'rem'. If you add more whitespace, the compiler will simply think everything after that line belongs to the comment.


plash(Posted 2009) [#6]
Works lovely here, Jim.