Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxScintilla
heromyth:
Scintilla 1.72 is out.
wxScintilla is still 1.69.2. Of course, it is updating to 1.71 in SVN depository.
Today, I have successfully updated the scintilla in Code::Blocks svn 3555 from 1.67 to 1.72. The whole process is painless. :lol: I just did some simple tests and didn't find any problem. After a little longer test and not finding any problem, I'll submit my patches (In fact, they are just some little patches to wxScintilla 1.71 and Scintilla 1.72).
joubertdj:
:lol: Super!!!
arst:
About wxScintilla: I just posted a patch on BerliOS with script Squirrel bindings for wxScintilla:
local ed = GetEditorManager().GetActiveEditor()
if( ed.GetStyle()==2 ) // 2 is a comment line in Scintilla
ed.InsertText(_T("This appears inside a comment"))
So, now one can make scripts that navigate and edit in open text files.
It's convenient to use the style information from Scintilla, one can
know what element (comment, identifier, reserved word,...) one is
dealing with.
I'm looking at doing wxEventHandler macro insertion this way.
OK!
// Arst
heromyth:
The steps of upgrading wxscintilla to the newest
1) downloading wxscintilla files
These files locate at http://wxcode.cvs.sourceforge.net/wxcode/wxCode/components/wxscintilla/
They are including :
src/PlatWX.cpp
src/PlatWX.h
src/ScintillaWX.cpp
src/ScintillaWX.h
src/wxscintilla.cpp
build/Makefile
include/wx/wxscintilla.h
Overwriting these files in codeblocks/src/sdk/wxscintilla/.
2) patching wxscintilla
Using these patch files:
wxscintilla.h.patch
ScintillaWX.h.patch
Makefile.wxScintilla.patch
3) downloading scintilla
It's at here:
http://prdownloads.sourceforge.net/scintilla/scintilla172.zip?download
Place all the files into codeblocks/src/sdk/wxscintilla/src/scintilla/.
4) patching scintilla
Using this patch file:
ExternalLexer.h.patch
This patch has been taken into scintilla cvs.
4) patching CB
Using these patch files:
CodeBlocks.cbp.wxscintilla.patch
CodeBlocks-unix.cbp.wxscintilla.patch
Makefile.am.wxScintilla.patch
5) rebuilding CB
Now enjoy it!
All the patch files are in the attachment.
I have tested it with CB SVN 3566 under WinXP SP2, and haven't found any problem.
I have also submitted this patch at https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=1871&group_id=5358
[attachment deleted by admin]
MortenMacFly:
--- Quote from: heromyth on February 04, 2007, 03:18:41 pm ---The steps of upgrading wxscintilla to the newest
[...]
--- End quote ---
It's not quite as simple as that. These patches do not include the C::B changes to wxScintilla. These need to be merged, too (at least verified if they are still relevant). In addition please keep in mind that this is a major change to C::B as wxScintilla is a core component of C::B. I'm using an up-to-date version of wxScintilla myself (including the patches ;-)) but I am not sure if this is compatible with all platforms C::B is used with.
...just for the record.
With regards, Morten.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version