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

C++ code folding customization

(1/1)

DTF:
Hello everyone.
Please excuse me for my poor english...


I have a little trouble with C::B folding:
My function looks like this:


--- Code: ---void foo()
{
   //some code here
}

--- End code ---

And when i collapse it i got the following:
void foo()
{
----------------------------------------------------------


Is it possible to make the folded code look like this:

--- Code: ---void foo() [...]

--- End code ---
?

MortenMacFly:

--- Quote from: DTF on August 13, 2012, 01:03:22 pm ---Is it possible to make the folded code look like this:

--- Code: ---void foo() [...]

--- End code ---
?

--- End quote ---
Yes, if you write code like this:

--- Code: ---void foo() {
   //some code here
}

--- End code ---

I guess any further questions concerning that you should ask this in the scintilla forum. Collapsing is provided by the 3rd party scintilla lib that we just use.

Navigation

[0] Message Index

Go to full version