Page 7 of 20

Re: GoScintilla - 2.0

Posted: Fri May 07, 2010 6:31 pm
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.

Re: GoScintilla - 2.0

Posted: Fri May 07, 2010 6:46 pm
by Env
This is brilliant! :) Nicely done!

Re: GoScintilla - 2.0

Posted: Fri May 07, 2010 10:32 pm
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?

Re: GoScintilla - 2.0

Posted: Sat May 08, 2010 11:03 am
by srod

Re: GoScintilla - 2.0 (beta 2)

Posted: Tue May 11, 2010 1:15 pm
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.

Re: GoScintilla - 2.0 (beta 2)

Posted: Tue May 11, 2010 1:58 pm
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

Re: GoScintilla - 2.0 (beta 2)

Posted: Tue May 11, 2010 3:08 pm
by srod
Confirmed.

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

I'll take a look.

Re: GoScintilla - 2.0 (beta 3)

Posted: Tue May 11, 2010 3:49 pm
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.

Re: GoScintilla - 2.0 (beta 3)

Posted: Tue May 11, 2010 3:59 pm
by ts-soft
thx for beta 3
Image
works like a pig :mrgreen:

Re: GoScintilla - 2.0 (beta 3)

Posted: Tue May 11, 2010 9:03 pm
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.

Re: GoScintilla - 2.0 (beta 3)

Posted: Tue May 11, 2010 9:58 pm
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.

Re: GoScintilla - 2.0 (beta 3)

Posted: Wed May 12, 2010 10:52 pm
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.

Re: GoScintilla - 2.0 (beta 3)

Posted: Wed May 12, 2010 11:26 pm
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.

Re: GoScintilla - 2.0 (beta 3)

Posted: Thu May 13, 2010 11:03 pm
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?

Re: GoScintilla - 2.0 (beta 3)

Posted: Fri May 14, 2010 11:34 am
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.