The new Release 20.03 is out! You can download binaries for Windows and many major Linux distros here .
//(*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>
//{//}
Code// <editor-fold defaultstate="collapsed" desc=" Variables declaration "> code here// </editor-fold>And when collapsed you see a white box with " Variables declaration "
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.
Quote from: byo on November 20, 2007, 11:25:42 pmSwitching 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).
Hmm, now it's working for me :oops:.
I'll try to add the extra-comment feature soon.
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.
Sorry, but how do I apply those patchs?