//(*Identifiers(tFrame)
static const long ID_BUTTON1;
static const long ID_PANEL1;
static const long ID_TEXTCTRL1;
static const long ID_PANEL2;
static const long ID_NOTEBOOK1;
static const long idMenuQuit;
static const long idMenuAbout;
static const long ID_STATUSBAR1;
//*)
//(*Declarations(tFrame)
wxNotebook* Notebook1;
wxButton* Button1;
wxPanel* Panel1;
wxStatusBar* StatusBar1;
wxTextCtrl* TextCtrl1;
wxPanel* Panel2;
//*)
// <editor-fold defaultstate="collapsed" desc=" Variables declaration ">
code here
// </editor-fold>
//{
//}
CodeAnd when collapsed you see a white box with " Variables declaration "// <editor-fold defaultstate="collapsed" desc=" Variables declaration ">
code here
// </editor-fold>
you can add folding point in CB using (http://codeblocks.org/docs/main_codeblocks_ench1.html#x2-10001)Code//{
//}
Switching to //{ scheme may be little bit problematic now since it may introduce problems on how to deal with two types of comments.I'm afraid I don't get it completely. I didn't mean to switch, but having this in addition around wxSmith code and current comments. So you can keep the wxSmith comment style untouched. But you are also talking about "two types of comments"...?! Mind explaining again for a stupe like me...?! ;-)
Switching to //{ scheme may be little bit problematic now since it may introduce problems on how to deal with two types of comments.I'm afraid I don't get it completely. I didn't mean to switch, but having this in addition around wxSmith code and current comments. So you can keep the wxSmith comment style untouched. But you are also talking about "two types of comments"...?! Mind explaining again for a stupe like me...?! ;-)
Ok, but I'm affraid it won't work since there's still problem with //{ //} detection in wxScintilla (it just don't mark such block for me).It works perfectly for me on Windows (anyway) and Ubuntu 7/10 with wxWidgets 2.8.6 (C::B svn build).
Hmm, now it's working for me :oops:.Halloween is over, isn't it... ;-)
I'll try to add the extra-comment feature soon.That'd be a great feature, really. Take your time - I'm looking forward to it. :-)
Maybe I'm asking too much, but maybe someone can improve code folding...
I've made small investigation on extra code-folding comments and it looks like it may introduce some problems.
I've also looked into wxScintilla sources and prepared two patches.
First one forces wxScintilla to additionally fold wxSmith code, second one enables extra folding and additional colouring of such generated code (currently it would be standard black since it's not configurable in editor's preferences).
The biggest disadvantage of these patches is that they directly patch wxscintilla. There may be possibility to add our own lexer outside wxScintilla but that would require much more investigations.
Regards
BYO
The biggest disadvantage of these patches is that they directly patch wxscintilla. There may be possibility to add our own lexer outside wxScintilla but that would require much more investigations.Woohoo... you are going beyond the limits... but nice one - will try! :-)
Sorry, but how do I apply those patchs?