SyntaxBomb - Indie Coders

Languages & Coding => SmallBASIC => Topic started by: johnno56 on July 21, 2021, 00:59:01

Title: Quick question
Post by: johnno56 on July 21, 2021, 00:59:01
Can SmallBasic be used with another IDE, like Atom, VsCode or Geany? Would I be correct in assuming that the task would require some king of compiler?

Just curious...

J
Title: Re: Quick question
Post by: jsalai on July 21, 2021, 07:39:52
For Geany:
https://retrobasic.allbasic.info/index.php?topic=722.0 (https://retrobasic.allbasic.info/index.php?topic=722.0)

Title: Re: Quick question
Post by: chrisws on July 21, 2021, 11:57:56
Quote from: johnno56 on July 21, 2021, 00:59:01
Can SmallBasic be used with another IDE, like Atom, VsCode or Geany? Would I be correct in assuming that the task would require some king of compiler?

Just curious...

J

Yes - it would be cool if someone made a proper extension for Atom or Vscode. This would give the correct syntax highlighting etc.
Title: Re: Quick question
Post by: jsalai on July 21, 2021, 15:26:49
Quote from: chrisws on July 21, 2021, 11:57:56
Quote from: johnno56 on July 21, 2021, 00:59:01
Can SmallBasic be used with another IDE, like Atom, VsCode or Geany? Would I be correct in assuming that the task would require some king of compiler?

Just curious...

J

Yes - it would be cool if someone made a proper extension for Atom or Vscode. This would give the correct syntax highlighting etc.

Of course; I tried Geany, and it worked well, but, as stated, I had to use FreeBASIC syntax highlighting... No option to edit the keywords...

In fact any editor with configurable keywords, and strong enough macros (capable of starting external programs) or compie/run capabilities could do it.
The real pain is to define all the keywords...

was about to try with Boxer, but I conclude, the SB internal is good enough, and Ctrl-R suffice...
Title: Re: Quick question
Post by: J7M on July 21, 2021, 20:01:58
I'm using Geany (https://www.geany.org/). It works with Windows and Linux. I edited the keywords file of freebasic to have correct syntax highlighting for Smallbasic.

If you want to give it a try, you can find the file in the attachment. In the [build-menu] section of the file (line 73) you need to change the path to the Smallbasic folder, where the sbasicg executable file is located. If you are in Windows you should also write "sbasicg.exe".

In Ubuntu you have to save the file in ~/.config/geany/filedefs. In Windows just replace the file but I don't know where it's located.
Title: Re: Quick question
Post by: jsalai on July 23, 2021, 16:30:12
Quote from: J7M on July 21, 2021, 20:01:58
I'm using Geany (https://www.geany.org/). It works with Windows and Linux. I edited the keywords file of freebasic to have correct syntax highlighting for Smallbasic.

If you want to give it a try, you can find the file in the attachment. In the [build-menu] section of the file (line 73) you need to change the path to the Smallbasic folder, where the sbasicg executable file is located. If you are in Windows you should also write "sbasicg.exe".

In Ubuntu you have to save the file in ~/.config/geany/filedefs. In Windows just replace the file but I don't know where it's located.

Thanks, works fine!

My error was that I tried (as always if possible), a portable version of geany.
In Win the defs are in <inst_path>\data\filedefs\*.*
Title: Re: Quick question
Post by: bplus on July 23, 2021, 20:11:59
Edit: oops wrong thread sorry