Ooops
September 28, 2021, 05:42:21

Author Topic: Quick question  (Read 537 times)

Offline johnno56

  • Jr. Member
  • **
  • Posts: 49
  • Logic is the beginning of Wisdom.
Quick question
« 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
May your journey be free of incident.

Live long and prosper.

Offline jsalai

  • Jr. Member
  • **
  • Posts: 41
Re: Quick question
« Reply #1 on: July 21, 2021, 07:39:52 »
I won't belong to any organization that would have me as a member.
[Groucho Marx]

Offline chrisws

  • Full Member
  • ***
  • Posts: 117
    • SmallBASIC
Re: Quick question
« Reply #2 on: July 21, 2021, 11:57:56 »
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.

Offline jsalai

  • Jr. Member
  • **
  • Posts: 41
Re: Quick question
« Reply #3 on: July 21, 2021, 15:26:49 »
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 me as a member.
[Groucho Marx]

Offline J7M

  • Jr. Member
  • **
  • Posts: 6
Re: Quick question
« Reply #4 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.

Offline jsalai

  • Jr. Member
  • **
  • Posts: 41
Re: Quick question
« Reply #5 on: July 23, 2021, 16:30:12 »
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 me as a member.
[Groucho Marx]

Offline bplus

  • Full Member
  • ***
  • Posts: 221
Re: Quick question
« Reply #6 on: July 23, 2021, 20:11:59 »
Edit: oops wrong thread sorry

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal