Author Topic: Editor options and functions  (Read 4815 times)

0 Members and 1 Guest are viewing this topic.

Offline CBTJD

  • Newbie
  • Posts: 60
  • You're only as old as you feel. ...I'm screwed.
    • View Profile
Editor options and functions
« on: March 14, 2020, 09:14:19 am »
Hello all,
I've been rapidly getting up to speed with QB64 and I'm having such a blast! I was actually able to buy a handful of QBasic and QuickBASIC books from Amazon dating back to the early 1990s which have proven very helpful. How cool is that?! And the YouTube tutorials are very helpful.

In the past, with Liberty BASIC, I've setup the Sublime text editor as a third-party code editor. I really enjoy the theming choices as well as code folding, color syntax, and build options. It's never easy getting Sublime up to speed though. It took me days to get Liberty BASIC setup right. I'm having an equally difficult time getting the build function working for QB64. Anyone have any experience with this? I've got it compiling to the proper directory just fine, but I can't get it to run the built app immediately after the build. I'm running on a Mac too.
Also, in the stock editor, is there a way to close out help subject windows? After a while I have a long horizontal "tab" list across the top of the help screen I'd like to prune a bit, if possible.
Thanks!  :@)

CBTJD: Coding BASIC Takes Judicious Dedication

FellippeHeitor

  • Guest
Re: Editor options and functions
« Reply #1 on: March 15, 2020, 11:31:40 am »
There's a Notepad++ set of files that RhoSigma maintains here: https://www.qb64.org/forum/index.php?topic=809.msg100182#msg100182

I don't think I get "close out help subject windows"... you mean clear help link history?

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Editor options and functions
« Reply #2 on: March 15, 2020, 11:35:24 am »
The simple way to clear the Help tabs is to close Help and open it again, I don't think individual tabs can be controlled.
You know there is always this: https://www.qb64.org/wiki/Main_Page
Much easier to use if you are doing lots of Help access, set tabs with browser!

I tried Notepad++ but found myself addicted to reassuring "OK"'s from syntax checker :)

Hey does OPTION _EXPLICIT work in Notepad++, I know Rho wont know ;-))
« Last Edit: March 15, 2020, 11:41:15 am by bplus »

FellippeHeitor

  • Guest
Re: Editor options and functions
« Reply #3 on: March 15, 2020, 12:06:20 pm »
What do you mean by "does OPTION _EXPLICIT work in Notepad++"?

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Editor options and functions
« Reply #4 on: March 15, 2020, 12:23:07 pm »
What do you mean by "does OPTION _EXPLICIT work in Notepad++"?

I am thinking it works like Syntax Checking only in the IDE.

I just read you can compile with -e switch but on command line. You might tell Notepad++ to compile with -e switch but how would Notepad++ handle messages?
« Last Edit: March 15, 2020, 12:26:30 pm by bplus »

FellippeHeitor

  • Guest
Re: Editor options and functions
« Reply #5 on: March 15, 2020, 12:26:10 pm »
Yes.

FellippeHeitor

  • Guest
Re: Editor options and functions
« Reply #6 on: March 15, 2020, 12:35:01 pm »
Compiling with -e will just make the first undeclared variable pop in a message on console output and halt compilation, this for projects that weren't written with OPTION _EXPLICIT. Notepad++ won't handle it.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Editor options and functions
« Reply #7 on: March 15, 2020, 01:19:17 pm »
Compiling with -e will just make the first undeclared variable pop in a message on console output and halt compilation, this for projects that weren't written with OPTION _EXPLICIT. Notepad++ won't handle it.

And therefore: OPTION _EXPLICIT wont work in Notepad++ :)

Offline CBTJD

  • Newbie
  • Posts: 60
  • You're only as old as you feel. ...I'm screwed.
    • View Profile
Re: Editor options and functions
« Reply #8 on: March 15, 2020, 07:58:10 pm »
There's a Notepad++ set of files that RhoSigma maintains...
Thanks! I was mistaken in thinking that Notepad++ was strictly a PC app, but I see there is a Mac option. I'll definitely look into it.
I was finally able to get Sublime to compile OR run, but not compile AND run...yet. Sublime's build config file format is a bit of a dog, but once you get it figured out, it can be a real jewel to work with. I hope Notepad++ proves equally engaging.
As for the Help tabs...My OCD was just grousing at the fact that couldn't make them go away. I read that it will display up to a max of 20 tabs. That at least assuages my psychosis in the meantime. Regardless, I have to move to a different editor because the PC-centric keyboard shortcuts in QB64 are driving me insane on a Mac. Sorry, that's on me.
:@)
CBTJD: Coding BASIC Takes Judicious Dedication