Quick question

Started by johnno56, July 21, 2021, 00:59:01

Previous topic - Next topic

johnno56

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
May your journey be free of incident.

Live long and prosper.

jsalai

I won't belong to any organization that would have people like me as members.
[Groucho Marx]

chrisws

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.

jsalai

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...
I won't belong to any organization that would have people like me as members.
[Groucho Marx]

J7M

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.

jsalai

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\*.*
I won't belong to any organization that would have people like me as members.
[Groucho Marx]

bplus

Edit: oops wrong thread sorry
1 person likes this