User forums > Help

Problem with customized folding point

(1/2) > >>

meouda:
Dear all,

I am trying to use the customized folding point to collapse a commented block. According to Code::Blocks user manual to create a user defined folding points we use something like that


--- Code: ---// {
int a= 0;
// }

--- End code ---

But this will not generate a new folding point unless we remove the two comment marks, so the  code will looks like:


--- Code: ---{
int a= 0;
}
--- End code ---

Unfortunately this will produce the following compiling error:


--- Quote ---error: expected unqualified-id before '{' token|
--- End quote ---

Any suggestions?

I am using Code::Blocks 16.01 on Windows 7 x64.

Best regards.

Jenna:
Remove the blank between the comment and the braces.

meouda:
I did , but unfortunately still not working (see attached screenshot)

Jenna:
What's the exact name of the file (especially which file-ending has it) ?

meouda:
the file full name is: CVector.cpp

Navigation

[0] Message Index

[#] Next page

Go to full version