News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Codeblocks and Scintilla

Started by Barking_Mad, October 06, 2008, 04:41:01 PM

Previous topic - Next topic

Barking_Mad

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?
WooF! WooF! - Ubuntu 8.10 & CB 5432 & GCC 4.3.2
To see the world in a grain of sand and heaven in a wild flower
To hold infinity in the palm of your hand and eternity in an hour - W.B

stahta01

Quote from: 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?

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Barking_Mad

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?
WooF! WooF! - Ubuntu 8.10 & CB 5432 & GCC 4.3.2
To see the world in a grain of sand and heaven in a wild flower
To hold infinity in the palm of your hand and eternity in an hour - W.B

stahta01

Quote from: 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?

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

Quote from: Barking_Mad on October 06, 2008, 07:29:08 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Barking_Mad

WooF! WooF! - Ubuntu 8.10 & CB 5432 & GCC 4.3.2
To see the world in a grain of sand and heaven in a wild flower
To hold infinity in the palm of your hand and eternity in an hour - W.B

dmoore

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.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

Jenna

Quote from: 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.

They will be there if we merge trunk with the new scintilla branch.

dmoore

thanks. I can probably use the old style indicators for now, but the new ones will be better to work with.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

Jenna

Quote from: 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.

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

It's only some revisions behind trunk.