Ooops
February 19, 2020, 02:09:12 AM

Author Topic: editor  (Read 4079 times)

Offline round157

  • Sr. Member
  • ****
  • Posts: 254
editor
« on: November 19, 2019, 11:35:51 PM »
I downloaded the version 0.12.14. The editor is very special. I also downloaded several old versions. An old version is with an ordinary editor. This ordinary editor may be better. I am curious. Why abandoned the ordinary editor and used the current editor? Thanks. 
https://sourceforge.net/projects/smallbasic/files/Windows/

Offline chrisws

  • Jr. Member
  • **
  • Posts: 22
Re: editor
« Reply #1 on: November 21, 2019, 09:03:31 AM »
I downloaded the version 0.12.14. The editor is very special. I also downloaded several old versions. An old version is with an ordinary editor. This ordinary editor may be better. I am curious. Why abandoned the ordinary editor and used the current editor? Thanks. 
https://sourceforge.net/projects/smallbasic/files/Windows/

The old version was based on the FLTK 2.0 library which was abandoned long ago, so it kind of went dormant.  But I recently started porting the code to work with the newer FLTK 1.4 https://github.com/fltk/fltk I haven't released a windows build for this yet by plan to do so maybe before the end of the year. FLTK version numbers are funny, there's also an abandoned 3.0 branch lol.

Other than being "special", the new editor has some 'special' features like live editing and a rudimentary step-thru debugger. In the live editing, you hit CTRL+S to save and the live window display your changes automatically.




Offline round157

  • Sr. Member
  • ****
  • Posts: 254
Re: editor
« Reply #2 on: November 21, 2019, 10:54:11 AM »

Other than being "special", the new editor has some 'special' features like live editing and a rudimentary step-thru debugger. In the live editing, you hit CTRL+S to save and the live window display your changes automatically.

I see. Thanks. The feature looks nice.

The SmallBASIC's editor makes me remember the editor of QB64. The QB64's editor is also special:



The texts can be seen. The default colors are ugly but the colours can be changed in the configuration menu.

The following screenshot was captured by me(I used sbasicg.exe). Since the background and the texts are also dark, it is not too easy for me to read the texts. If the colors of the texts are brighter colors or can be changed, users may like this editor very much.


Offline Aurel

  • Jr. Member
  • **
  • Posts: 63
Re: editor
« Reply #3 on: November 24, 2019, 06:54:58 PM »
For anyone who wish to try this small and quick( and not exactly complete) code editor for SmallBasic.
Just unpack zip content into SmallBasic folder and run SmallBasicEdit.exe.
It uses scintilla edit control.

Offline round157

  • Sr. Member
  • ****
  • Posts: 254
Re: editor
« Reply #4 on: November 25, 2019, 08:36:22 AM »
For anyone who wish to try this small and quick( and not exactly complete) code editor for SmallBasic.
Just unpack zip content into SmallBasic folder and run SmallBasicEdit.exe.
It uses scintilla edit control.

I am downloading it. Thank you.

Offline Aurel

  • Jr. Member
  • **
  • Posts: 63
Re: editor
« Reply #5 on: November 25, 2019, 04:30:30 PM »
Just to let you know , it is one of first versions of AurelEdit i do quick mod that can work with
SmallBasic interpreter.
You may find it clumsey but work.
After you unpack it and run SmallbasicEdit.exe just click new or open toolbar button.
When you need to copy code from forum ,before that you must have open New Tab
then just paste code from forum to editor by right-click on scintilla control(edit area)
then click Compile button and if all is ok program should be executed.

Offline round157

  • Sr. Member
  • ****
  • Posts: 254
Re: editor
« Reply #6 on: November 26, 2019, 09:00:44 AM »
Just to let you know , it is one of first versions of AurelEdit i do quick mod that can work with
SmallBasic interpreter.
You may find it clumsey but work.
After you unpack it and run SmallbasicEdit.exe just click new or open toolbar button.
When you need to copy code from forum ,before that you must have open New Tab
then just paste code from forum to editor by right-click on scintilla control(edit area)
then click Compile button and if all is ok program should be executed.

Thanks. The above instructions are detailed.

I have a question. Your previous post,

"For anyone who wish to try this small and quick( and not exactly complete) code editor for SmallBasic.
Just unpack zip content into SmallBasic folder and run SmallBasicEdit.exe.
It uses scintilla edit control."

I am curious,

"this small and quick( and not exactly complete) code editor"

Why did you say "not exactly complete"? Is this editor not a finished editor? 

Offline Aurel

  • Jr. Member
  • **
  • Posts: 63
Re: editor
« Reply #7 on: November 26, 2019, 01:03:31 PM »
I mean in first place feature less just have open,save , run
of course if you modify code and then click RUN changes are saved and executed.
Nice thing should be yes/cancel/no

By the way ,how work ?

Offline bplus

  • Jr. Member
  • **
  • Posts: 73
  • Beauty is a light in the heart.
Re: editor
« Reply #8 on: November 26, 2019, 09:04:07 PM »
Aurel,

I forgot, can you indent and comment blocks of code?

I use Notepad++ for extra curricular coding but haven't managed comment blocks.

Offline round157

  • Sr. Member
  • ****
  • Posts: 254
Re: editor
« Reply #9 on: November 27, 2019, 10:38:47 AM »
Aurel,

I forgot, can you indent and comment blocks of code?



Hello, you mean SBEdit.zip? auto-indent? Looks impossible. ??? Can you download and test SBEdit.zip? SBEdit.zip actually does not work too well. Thanks.  :'(



Offline round157

  • Sr. Member
  • ****
  • Posts: 254
Re: editor
« Reply #10 on: November 27, 2019, 10:39:57 AM »
By the way ,how work ?

Sorry, not okay.

There are three files inside the zip file. I place the three files in the SmallBASIC folder(the name is SmallBASIC 0_12_14). SmallBasicEdit.exe can be opened. Then I open one source code file. The source code file can be opened. Then I press "Run" button. However, nothing is run.

Offline bplus

  • Jr. Member
  • **
  • Posts: 73
  • Beauty is a light in the heart.
Re: editor
« Reply #11 on: November 27, 2019, 01:31:45 PM »
Yeah, strange as it may be, Run does not work but compile does.

Offline Aurel

  • Jr. Member
  • **
  • Posts: 63
Re: editor
« Reply #12 on: November 27, 2019, 07:02:48 PM »
Yes i already say that ..use button Compile and must work
so ..do you try?

Offline bplus

  • Jr. Member
  • **
  • Posts: 73
  • Beauty is a light in the heart.
Re: editor
« Reply #13 on: November 27, 2019, 10:02:13 PM »
Yes i already say that ..use button Compile and must work
so ..do you try?

Yes, lost a file I shouldn't have tested on, I really want access to Help when I code, syntax checking with OPTION _EXPLICIT is all the better! Commenting and un-commenting blocks of code even better still. All this I have accepted over having a regular file dialog with QB64.

Offline round157

  • Sr. Member
  • ****
  • Posts: 254
Re: editor
« Reply #14 on: November 28, 2019, 08:54:27 AM »
..use button Compile and must work


Hi....., if press 'Compile' button in your editor, the SmallBASIC editor(sbasicg.exe) will open with that source code file. Then I press the right button of the mouse. Then the menu appears. Then select 'Run' in the menu. Then the source code will be run.

I have one question. Now the source code cannot be run directly after I press 'Compile' button in your editor. Is it impossible?   sbasicg.exe is required to open first?


 

SimplePortal 2.3.6 © 2008-2014, SimplePortal