Author Topic: Why don't block comments work?  (Read 3832 times)

Offline Zamp

  • Multiple posting newcomer
  • *
  • Posts: 26
Why don't block comments work?
« on: August 09, 2008, 03:53:00 am »
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:

/*class Exhaust {
        int x, y;
        int frame;
        SDL_Surface *type;
        Exhaust(int X, int Y);

        void show();
        bool is_dead();

I looked in all the options, as well as searched the forum and wiki, but couldn't find anything.

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
Re: Why don't block comments work?
« Reply #1 on: August 09, 2008, 11:31:43 am »

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...



[attachment deleted by admin]
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100