WinFBE 1.5.7 (test version)

Started by Paul Squires, January 16, 2018, 07:31:40 PM

Previous topic - Next topic

raymw

Quote from: Paul Squires on January 27, 2018, 10:11:05 PM
First post updated with Test#5 link.
I have a new laptop scheduled to arrive on Tuesday. My current machine has been acting up too much. Time for a new toy. :)
will that be Windows 10? Have fun...

Paul Squires

I've been using Windows 10 since it was released. It is just as good if not even better than Windows 7.
Dell XPS 15" laptop.

Paul Squires
PlanetSquires Software

raymw

Quote from: Paul Squires on January 28, 2018, 11:54:57 AM
I've been using Windows 10 since it was released. It is just as good if not even better than Windows 7.
Dell XPS 15" laptop.
agreed.

Paul Squires

Working with the builtin Scintilla autocomplete popup can be quite frustrating. I am close to ditching it and use a popup similar to the one I used in FireFly. In the long run that would probably be a better choice.
Paul Squires
PlanetSquires Software

raymw

#34
getting a few problems - holding down a key, does not auto repeat until you lift off, then you get the stream of characters on screen
started writing some code, showing fold margins, I have an 'END SUB with a (-) against it. Program compiles but produces an error -TCMPC8D6.exe has stopped working.
if I try cutting/pasting commenting out the subs with the wrong block fold symbols, they just come back when I uncomment or repaste.

edit to say - I had thought the block fold was the same as I'd used elsewhere - to collapse subroutines/functions etc. It seems to relate somehow to the position of the first character in the line, and effects other lines too, so I guess its a feature, and not a bug. Haven't sussed the other two, though...

Paul Squires

Quote from: raymw on January 29, 2018, 07:08:34 PM
getting a few problems - holding down a key, does not auto repeat until you lift off, then you get the stream of characters on screen
Are you saying that, say, if you hold down the "A" key that the series of "A"'s don't show until you stop pressing the key?
That behaviour is not what I see on my machine. The series of "A"'s show on the screen after a very short delay.
Paul Squires
PlanetSquires Software

Paul Squires

Quote from: raymw on January 29, 2018, 07:08:34 PM
started writing some code, showing fold margins, I have an 'END SUB with a (-) against it. Program compiles but produces an error -TCMPC8D6.exe has stopped working.
if I try cutting/pasting commenting out the subs with the wrong block fold symbols, they just come back when I uncomment or repaste.
Doesn't surprise me that there might be issues with folding. I am using whatever logic is built into the VB lexer within Scintilla. I don't use folding at all. I will look at folding at some point down the road.
Paul Squires
PlanetSquires Software

Paul Squires

First post updated with new Test version 6.

Ray - I think may address your delay issue. I thought about it more and I think the problem is that when character entered a file parse was being performed and if you had a lot of #Include files then there would be a time delay as parsing is performed. All of that is now fixed.
Paul Squires
PlanetSquires Software

raymw

hanks Paul, I'll try and break it tomorrow. wrt fold, I'll get used to it, I find it useful to shrink the subs/functions I know work, just leaving the few I'm working on at the time, but maybe I can do similar with the two editing screens that I think you have in winfbe. Just more stuff to get the hang of.

raymw

Hi Paul, the repeat key is now working fine, thanks. The 'uncomment block' only works if comments are in first column of line, but that'll do. Today is your new pc day, I believe.

Paul Squires

Quote from: raymw on January 30, 2018, 12:55:14 PM
Today is your new pc day, I believe.
Snow storm here today so the laptop wasn't delivered. I was looking forward to getting it setup this evening. Oh well, Christmas will have to wait until tomorrow :)
Paul Squires
PlanetSquires Software

Marc Pons

Hi Paul
As i understood you are using the vb lexer in your editor ( as csed used too), and i remember the way it is managing the folding
is by using indentation, that was not satisfying me when i've done my own adaptation to csed-fb

you have also done some modifications to support the bloc comment feature (not the nested ones)

I think you could be interrested by a different lexer , originally done for BlitzBasic and PureBasic and after extended to freebasic too.

here is a link for a lexer working for freebasic
https://bitbucket.org/KuanHsu/poseidonfb/downloads/
its an evolution from Kuan Hsu  done for its own editor poseidon, i'm using under linux

the folding feature is based on keywords pairs  like function-end function, which are more interesting
and it manages correctly the nested comment blocks now.

hope it can help you, on your nice editor ...

Marc

note :  the file extension is modified  for the file been attached




Paul Squires

Thanks Marc, I appreciate the file. I will add the lexer to the scintilla code and recompile.
Paul Squires
PlanetSquires Software

Marc Pons

good! if it can serve you

but the one to be thank is  Kuan Hsu

that lexer is not perfect
it does not detect   for foldings :
                     the private/public function =  end function bloc ,
                    nor private/public sub =  end sub bloc
but
                  function = end function bloc   yes
                  sub = end sub  yes
and  also the normal blocs of code

but it is quite easy to adapt (if needed)

i personally not use very often the folding features but ...

what i really like is the ability to highlight  correctly the nested comment block
less risk for mistakes.

Paul Squires

I should be able to modify the code to handle the public/private function/sub/property hopefully.
Paul Squires
PlanetSquires Software