Author Topic: Codeblocks and Scintilla  (Read 11507 times)

Offline Barking_Mad

  • Multiple posting newcomer
  • *
  • Posts: 47
Codeblocks and Scintilla
« 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?
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

Online stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Codeblocks and Scintilla
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Barking_Mad

  • Multiple posting newcomer
  • *
  • Posts: 47
Re: Codeblocks and Scintilla
« Reply #2 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?
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

Online stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Codeblocks and Scintilla
« Reply #3 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
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Codeblocks and Scintilla
« Reply #4 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Barking_Mad

  • Multiple posting newcomer
  • *
  • Posts: 47
Re: Codeblocks and Scintilla
« Reply #5 on: October 08, 2008, 06:08:20 pm »
Thanks for the info.
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

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Codeblocks and Scintilla
« Reply #6 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Codeblocks and Scintilla
« Reply #7 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.

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Codeblocks and Scintilla
« Reply #8 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Codeblocks and Scintilla
« Reply #9 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.