GoScintilla - 2.7 (Purebasic 4.5 onwards)

Developed or developing a new product in PureBasic? Tell the world about it.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: GoScintilla - 2.0

Post by srod »

Armoured wrote:Srod, the link for GoScintilla 2.0 doesn't work.
Please correct it.



Thanks
Please read the damn thread.

:twisted:

When you are done, then please read the thread in the general section.
I may look like a mule, but I'm not a complete ass.
Env
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 27, 2010 3:20 pm
Location: Wales, United Kingdom

Re: GoScintilla - 2.0

Post by Env »

This is brilliant! :) Nicely done!
Thanks!
Armoured
Enthusiast
Enthusiast
Posts: 365
Joined: Mon Jan 26, 2004 11:39 am
Location: ITALY
Contact:

Re: GoScintilla - 2.0

Post by Armoured »

srod wrote:
Armoured wrote:Srod, the link for GoScintilla 2.0 doesn't work.
Please correct it.



Thanks
Please read the damn thread.

:twisted:

When you are done, then please read the thread in the general section.
General section?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: GoScintilla - 2.0

Post by srod »

I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: GoScintilla - 2.0 (beta 2)

Post by srod »

GoScintilla 2.0 (beta 2) - 11th May 2010

GoScintilla 2, beta 2 (read, attempt 2!) represents a significant improvement over beta 1 which of course was my first attempt to bring some much needed functionality to the original GoScintilla. We now have code-completion, nested call-tips, bookmarks and auto-indentation.

Beta 1 fell apart (as demonstarted by that swine ts-soft! :wink: ) on call-tips and my original implementation fell way short of being useful. Beta 2 corrects that and addresses all of the immediate shortcomings highlighted by that cursed ts-soft! Beta 2 also comes with a completely updated manual (though it may be a little rough around the edges at this moment!)

However, whereas GoScintilla 2 beta 1 would break some existing GoScintilla applications, beta 2 has gone three steps further in that regard and breaks all existing GoScintilla apps! As much a pain for myself as anyone else, so all complaints in this respect will be duly ignored! :wink:

GoScintilla 2 is now, effectively, a completely different animal to the original GoScintilla and whilst most existing apps can be converted across quite easily, I have expended absolutely no effort within the new manual (or anywhere else for that matter) discussing how you might best proceed with any such upgrades. Instead, I point you to the numerous demo programs, some of which I had to upgrade myself etc.

GoScintilla 2 has been tested on XP, Vista (x86) and, courtesy of that swine ts-soft, also tested on Ubuntu 10.04 x64. Most of the new facilities offered by GoScintilla 2 will not work under MacOS.

See the "History.txt" file for a complete list of changes that underpin GoScintilla 2 and remember that GoScintilla 2 will compile with PB 4.5 only.

Please see the nxSoftware site for the download.
I may look like a mule, but I'm not a complete ass.
User avatar
helpy
Enthusiast
Enthusiast
Posts: 552
Joined: Sat Jun 28, 2003 12:01 am

Re: GoScintilla - 2.0 (beta 2)

Post by helpy »

Tested the demo "BlockCommentStyler.pb" and found a bug with the folding:

Start of the program and scroll down a little bit:
Image

After folding the first section:
Image

cu, helpy
Last edited by helpy on Fri May 21, 2010 7:35 am, edited 1 time in total.
Windows 10 / Windows 7
PB Last Final / Last Beta Testing
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: GoScintilla - 2.0 (beta 2)

Post by srod »

Confirmed.

It is not just the fold symbols missing, but the syntax styling has disappeared as well!

I'll take a look.
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: GoScintilla - 2.0 (beta 3)

Post by srod »

@helpy : turns out this bug affected the original GoScintilla as well! It was a bugger to track down. :) Thanks for the report.

=======================

GoScintilla 2.0 (beta 3) - 11th May 2010

GoScintilla 2, beta 3 fixes the bug reported above by Helpy.

Please see the nxSoftware site for the download.
I may look like a mule, but I'm not a complete ass.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: GoScintilla - 2.0 (beta 3)

Post by ts-soft »

thx for beta 3
Image
works like a pig :mrgreen:
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Re: GoScintilla - 2.0 (beta 3)

Post by Justin »

srod, could you fix version 1 and tell me in wich procedure the bug is located if possible? i'm using it in a big project and moving to version 2 will require a big rework.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: GoScintilla - 2.0 (beta 3)

Post by srod »

Justin wrote:srod, could you fix version 1 and tell me in wich procedure the bug is located if possible? i'm using it in a big project and moving to version 2 will require a big rework.
Done.

Download again and check you have version 1.1.
I may look like a mule, but I'm not a complete ass.
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Re: GoScintilla - 2.0 (beta 3)

Post by Justin »

Thanks, it works great.
About code folding, suppose i have a code like this:

Code: Select all

function test()
{
	if (a==1)
	{
		//do something
	}

	while (x==2)
	{
		//do something
	}
}
it is possible to fold only the function and not the if/else , while? Basically i would like to fold only function or class declarations but not the rest of the clausules.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: GoScintilla - 2.0 (beta 3)

Post by srod »

If you mean that you wish the folding markers to appear only on the braces denoting the function block and to not appear on the other types of brace... then no, this is not possible through some ready made GoScintilla settings.

You should be able to achieve this, however, with the aid of a user-defined line styling function. You can get GoScintilla to style the document and use your own line styler to simply look out for your own folding keywords etc. and increase/decrease the fold-level as appropriate. Make sure that you do not mark the '{' and '}' symbols as open-fold and close-fold keywords though because you do not want GoScintilla's code folding logic to interfere with your own.

Have a look at the "Multiword.pb" demo (advanced demos) to get some idea of how to set about this.
I may look like a mule, but I'm not a complete ass.
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Re: GoScintilla - 2.0 (beta 3)

Post by Justin »

My line styling function is the one used in your BlockcommentStylerII.pb demo wich is very complex, i have no idea of where to place the code, i tried several things. It would be very difficult for you to make an example with that styling function?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: GoScintilla - 2.0 (beta 3)

Post by srod »

Justin wrote:My line styling function is the one used in your BlockcommentStylerII.pb demo wich is very complex, i have no idea of where to place the code, i tried several things. It would be very difficult for you to make an example with that styling function?
Yes, I really haven't the time to mess around with that demo. It does use a complex line styler as you say. Honestly, I have spent too much time on GoScintilla 2 and, bugs aside, need to move on.
I may look like a mule, but I'm not a complete ass.
Post Reply