Hello,
If anyone is using a Mac and does any SuperBASIC coding (or just wants to look at SuperBASIC files) on that platform, I have created a SuperBASIC / SBASIC / Toolkit syntax colour file for those editors.
It can be found here: http://www.shimeril.com/public/qlsuperbasictw.zip
Please read the .readme file for instructions on how to install it. Once installed, you need to give your BASIC file a .bas or .sbas extension (I have not figured out how to get it to recognise _bas yet)
Once installed, you get nicely colour-coded SuperBASIC, and as a bonus, I have managed to figure out the regex for it to recognise procedures and functions so these get added to the functions pop up menu, allowing you to navigate quickly through your code.
(I'd suggest setting the function list to sort alphabetically - I find this much more logical than the default sort (functions appearing in the order they are defined). You can do this in Preferences/Appearance)
The file contains numerous toolkits and older emulator keywords too. I have commented these out as the odds of anyone having all the toolkits loaded and being in an old emulator are rather slim. To enable them, edit the file in a text editor (eg TextWrangler or BBEdit themselves) and remove the <!-- and --> tags form around the sections you want to enable
SuperBASIC syntax colour file for BBEdit/TextWrangler
- Sparrowhawk
- Super Gold Card
- Posts: 729
- Joined: Wed Dec 15, 2010 12:33 pm
- Location: @131072
- Sparrowhawk
- Super Gold Card
- Posts: 729
- Joined: Wed Dec 15, 2010 12:33 pm
- Location: @131072
Re: SuperBASIC syntax colour file for BBEdit/TextWrangler
My pleasure
I hope it's of some use to Mac users out there.
Dilwyn, if you want a copy for your site, feel free to grab a copy.

Dilwyn, if you want a copy for your site, feel free to grab a copy.
a.k.a. Jean-Yves
Re: SuperBASIC syntax colour file for BBEdit/TextWrangler
Thank you, done.Sparrowhawk wrote:My pleasureI hope it's of some use to Mac users out there.
Dilwyn, if you want a copy for your site, feel free to grab a copy.
It's at http://www.dilwyn.me.uk/basic/index.html along with the Marcos Cruz equivalent for Vim editor.
I've also (by coincidence) restored the Thierry Godefroy version of MicroEMACS and its SuperBASIC syntax files, which had been accidentally deleted from http://www.dilwyn.me.uk/editview/index.html
--
All things QL - https://dilwyn.theqlforum.com
All things QL - https://dilwyn.theqlforum.com
- Sparrowhawk
- Super Gold Card
- Posts: 729
- Joined: Wed Dec 15, 2010 12:33 pm
- Location: @131072
Re: SuperBASIC syntax colour file for BBEdit/TextWrangler
If anyone is interested, I also have an OPL syntax file (for the Psion series 3a/c/mx, Siena and Acorn Pocket Book series)
http://www.shimeril.com/public/opl16tw.zip
I reckon Sinclair files are probably also Psion fans, so maybe of interest to somebody here.
http://www.shimeril.com/public/opl16tw.zip
I reckon Sinclair files are probably also Psion fans, so maybe of interest to somebody here.
a.k.a. Jean-Yves
- Sparrowhawk
- Super Gold Card
- Posts: 729
- Joined: Wed Dec 15, 2010 12:33 pm
- Location: @131072
Re: SuperBASIC syntax colour file for BBEdit/TextWrangler
Dilwyn, thanks for the update. I used the keywords from Marcos' VIM file for the toolkit and old emulator sections of my own file - I have of course credited him in the plist file itself, but realised I had not done so in this post. So thank you Marcos! 

a.k.a. Jean-Yves
- Mr_Navigator
- QL Fanatic
- Posts: 782
- Joined: Mon Dec 13, 2010 11:17 pm
- Location: UK, Essex
- Contact:
Re: SuperBASIC syntax colour file for BBEdit/TextWrangler
My experience of installing is slightly different on my MAC laptop
For the benefit of others;
The instructions - INSTALLATION:
copy the qlsuperbasic.plist file into
~/Library/Application\ Support/TextWrangler/Language\ Modules/ for TextWrangler, or
~/Library/Application\ Support/BBEdit/Language\ Modules/ for BBEdit
I cannot find, some folders just don't exist
However for my TextWrangler installed from the APP Store, you can as follows
in Finder copy the plist file
in Applications, TextWrangler (right click on the mouse or ctrl click on the pad) Show Package Contents
click on contents
click on Language Modules
paste in to that area
i.e. Apps\TextWrangler\ /Contents/Language Modules/ *.plist
Hope this helps.
------------------------additional......................
I would be interested in trying to get different colours other than the palette settings for the syntax, maybe even different colours depending on the keywords, one colour for SuperBASIC another for Turbo for example. I don't know if thats possible, if anyone does please post here.
For the benefit of others;
The instructions - INSTALLATION:
copy the qlsuperbasic.plist file into
~/Library/Application\ Support/TextWrangler/Language\ Modules/ for TextWrangler, or
~/Library/Application\ Support/BBEdit/Language\ Modules/ for BBEdit
I cannot find, some folders just don't exist

However for my TextWrangler installed from the APP Store, you can as follows
in Finder copy the plist file
in Applications, TextWrangler (right click on the mouse or ctrl click on the pad) Show Package Contents
click on contents
click on Language Modules
paste in to that area
i.e. Apps\TextWrangler\ /Contents/Language Modules/ *.plist
Hope this helps.
------------------------additional......................
I would be interested in trying to get different colours other than the palette settings for the syntax, maybe even different colours depending on the keywords, one colour for SuperBASIC another for Turbo for example. I don't know if thats possible, if anyone does please post here.
-----------------------------------------------------------------------------------
QLick here for the Back 2 the QL Blog http://backtotheql.blogspot.co.uk/
QLick here for the Back 2 the QL Blog http://backtotheql.blogspot.co.uk/
- Sparrowhawk
- Super Gold Card
- Posts: 729
- Joined: Wed Dec 15, 2010 12:33 pm
- Location: @131072
Re: SuperBASIC syntax colour file for BBEdit/TextWrangler
Aha! That's why we have a difference. My TextWrangler is downloaded directly from BareBones Software's website to avoid the App Store's sandboxing restrictions.
I will update the readme this weekend to include the App Store version's requirements.
Thanks Lee for the info.
I will update the readme this weekend to include the App Store version's requirements.
Thanks Lee for the info.
a.k.a. Jean-Yves