Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Barking_Mad on October 06, 2008, 04:41:01 pm

Title: Codeblocks and Scintilla
Post by: Barking_Mad on October 06, 2008, 04:41:01 pm
Firstly, if this is not the appropriate forum to post this in please move and remove this apology.

I read that codeblocks uses scintilla as its base editor. Is the scintilla that code blocks uses the same as 1.76 scintilla or is it a customised/modified form?
Title: Re: Codeblocks and Scintilla
Post by: stahta01 on October 06, 2008, 07:10:41 pm
Firstly, if this is not the appropriate forum to post this in please move and remove this apology.

I read that codeblocks uses scintilla as its base editor. Is the scintilla that code blocks uses the same as 1.76 scintilla or is it a customised/modified form?

The version I am not sure about, but it is mainly unmodified because Code::Blocks wants patches to it submitted upstream.
Note, wxScintilla is modified by the Code::Blocks Team and they do accept patches to the wxScintilla portion of the code. The C::B team then tries to submit the changes upstream to wxScintilla if they feel it is worth doing.

Tim S
PS: I am not on the Code::Blocks team, but do submit patches from time to time.
Title: Re: Codeblocks and Scintilla
Post by: Barking_Mad on October 06, 2008, 07:29:08 pm
Thanks. Ive recently acquired the scintilla and SciTE sources and am in the process of learning the structure of these in an attempt to gain further insight into the codeblocks design for some ideas for improvements and patches i have.

So its generally safe to assume that essentially changes i make to scintilla 1.76 and test in SciTE will work/be compatible with codeblocks?
Title: Re: Codeblocks and Scintilla
Post by: stahta01 on October 06, 2008, 07:51:52 pm
Thanks. Ive recently acquired the scintilla and SciTE sources and am in the process of learning the structure of these in an attempt to gain further insight into the codeblocks design for some ideas for improvements and patches i have.

So its generally safe to assume that essentially changes i make to scintilla 1.76 and test in SciTE will work/be compatible with codeblocks?

Yes, but they won't accept them at Code::Blocks. They update to the current scintilla about every six months or so.
So, to get you patches in Code::Blocks scintilla, submit your patches to scintilla. Note, they do accept patches to Code::Blocks to upgrade to the Current scintilla version. And, may accept back-ports from upstream scintilla to Code::Blocks scintilla.

Tim S
Title: Re: Codeblocks and Scintilla
Post by: MortenMacFly on October 07, 2008, 04:47:21 pm
So its generally safe to assume that essentially changes i make to scintilla 1.76 and test in SciTE will work/be compatible with codeblocks?
Yes. I am always using latest wxScintilla (including our modifications) and latest Scintilla sources (I just don't commit). So if your development is based on recent Scintilla it's fine with me.
Title: Re: Codeblocks and Scintilla
Post by: Barking_Mad on October 08, 2008, 06:08:20 pm
Thanks for the info.
Title: Re: Codeblocks and Scintilla
Post by: dmoore on December 10, 2008, 01:16:27 pm
hey guys: does the current wxscintilla used in CB support "modern indicators"? http://www.scintilla.org/ScintillaDoc.html#Indicators

I was hope to using them for a spell checker implementation.
Title: Re: Codeblocks and Scintilla
Post by: Jenna on December 10, 2008, 01:25:25 pm
hey guys: does the current wxscintilla used in CB support "modern indicators"? http://www.scintilla.org/ScintillaDoc.html#Indicators

I was hope to using them for a spell checker implementation.

They will be there if we merge trunk with the new scintilla branch.
Title: Re: Codeblocks and Scintilla
Post by: dmoore on December 10, 2008, 05:31:01 pm
thanks. I can probably use the old style indicators for now, but the new ones will be better to work with.
Title: Re: Codeblocks and Scintilla
Post by: Jenna on December 10, 2008, 05:45:38 pm
thanks. I can probably use the old style indicators for now, but the new ones will be better to work with.

You can also try the new scintilla branch from "svn://svn.berlios.de/codeblocks/branches/scintilla".

It's only some revisions behind trunk.