User forums > General (but related to Code::Blocks)

Code Folding

<< < (3/3)

JGM:

--- Quote from: Knx on November 22, 2007, 02:18:36 pm ---Maybe I'm asking too much, but maybe someone can improve code folding...

--- End quote ---

There was already a thread about that here:

http://forums.codeblocks.org/index.php/topic,5426.0

Also a forum member made a patch and posted it on that thread. Good luck!

byo:
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

[attachment deleted by admin]

Knx:

--- Quote from: byo on November 23, 2007, 10:08:42 am ---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

--- End quote ---

Sorry, but how do I apply those patchs?

MortenMacFly:

--- Quote from: byo on November 23, 2007, 10:08:42 am ---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.

--- End quote ---
Woohoo... you are going beyond the limits... but nice one - will try! :-)

byo:

--- Quote from: Knx on November 23, 2007, 12:32:42 pm ---Sorry, but how do I apply those patchs?

--- End quote ---

If you're using TortoiseSVN simply right click on code::blocks directory and from TortoiseSVN submenu choose Apply Patch and select patch file. The rest should be easy.

One more thing I didn't mention - patches are excluding themselves, after applying one patch changes must be reverted to apply another one.

Regards
   BYO

Navigation

[0] Message Index

[*] Previous page

Go to full version