Menu

Bug in the Block-Comment function

2005-05-12
2012-11-13
  • Nobody/Anonymous

    If you block comment a part of the code then lines wich are allready commented will be uncommented and vice versa.
    Proposal for solution: introduce a seperate shortcut for commenting and uncommenting instead of doing it in toggle style (that's how it is solved now).

     
    • Nobody/Anonymous

      use ctrl+k and ctrl+shift+k

       
    • Nobody/Anonymous

      Agreed, this drives me CRAZY...

       
      • Nobody/Anonymous

        It's very frustrating

         
    • steakhacher

      steakhacher - 2007-03-01

      me too

       
    • Nobody/Anonymous

      This behaviour exits in latest version 4.2.2. Don, will it be fixed? I want to switch from the great ConTEXT editor to your smart and feature rich notepad++, but this "bug" is THE only thing which keep me away :-(. Used code language: C/C++

      The ConTEXT editor does it right. When several lines are marked and the block comment function is used:

      before:

      if( 1)
      {
        // nothing todo
        do
        {
        }while(1);
      };

      after:

      //  if( 1)
      //  {
      //    // nothing todo
      //    do
      //    {
      //    }while(1);
      //  };

      When only text in a line is marked, ConTEXT uses the C-comment style

      before

      if( 1)
      {
        // nothing todo
        do
        {
        }while(1); <-- marked from } to ;
      };

      after

      if( 1)
      {
        // nothing todo
        do
        {
        /* }while(1); */
      };