User forums > General (but related to Code::Blocks)
Why don't block comments work?
(1/1)
Zamp:
I'm using the svn build rev 5160 on openSUSE 11.0, and I can't get block comments to work.
I'll have some code I want to comment, but when I put '/*' at the beggining, it only comments out the first line, and maybe the second.
For example, I have this class I want to comment out, and when I try only the first two lines got gray and commented:
--- Code: ---/*class Exhaust {
private:
int x, y;
int frame;
SDL_Surface *type;
public:
Exhaust(int X, int Y);
void show();
bool is_dead();
};*/
--- End code ---
I looked in all the options, as well as searched the forum and wiki, but couldn't find anything.
frithjofh:
Hi,
I'm using SuSE 11.0 x86_64 and the code::blocks build 5177.
When I paste your code in a c++ file of my project, all of it gets commented out in grey, as it should. See atachment *.jpg
Maybe it's just the version you use and upgrading would help...
Greetings
Nausea
[attachment deleted by admin]
Navigation
[0] Message Index
Go to full version