Page 1 of 1

SuperBASIC syntax colour file for BBEdit/TextWrangler

Posted: Thu Mar 06, 2014 12:32 pm
by Sparrowhawk
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

Re: SuperBASIC syntax colour file for BBEdit/TextWrangler

Posted: Thu Mar 06, 2014 3:11 pm
by Dave
This is neat. Thank you :)

Re: SuperBASIC syntax colour file for BBEdit/TextWrangler

Posted: Thu Mar 06, 2014 5:23 pm
by Sparrowhawk
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.

Re: SuperBASIC syntax colour file for BBEdit/TextWrangler

Posted: Thu Mar 06, 2014 9:14 pm
by dilwyn
Sparrowhawk wrote: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.
Thank you, done.
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

Re: SuperBASIC syntax colour file for BBEdit/TextWrangler

Posted: Fri Mar 07, 2014 9:35 am
by Sparrowhawk
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.

Re: SuperBASIC syntax colour file for BBEdit/TextWrangler

Posted: Fri Mar 07, 2014 9:37 am
by Sparrowhawk
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! :)

Re: SuperBASIC syntax colour file for BBEdit/TextWrangler

Posted: Fri Mar 07, 2014 10:35 am
by Mr_Navigator
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.

Re: SuperBASIC syntax colour file for BBEdit/TextWrangler

Posted: Fri Mar 07, 2014 2:57 pm
by Sparrowhawk
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.