Community
    • Login

    Faulty Folding of Function when } has been commented out

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    2 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Kenn HamersK
      Kenn Hamers
      last edited by

      Hi Guys, (or Girls… whomever reads this)

      Wanted to know if anybody else noticed this one:

      Paste the following in a new sheet, set the language to c# and use the fold/unfold functions. You will see it still recognises the //} even though it has been commented out. I dont believe that is correct, so i wanted to let you know.

      test
      {
      {
      //}
      }
      }

      You might want to put some tabs and additional line breaks in it for clarity when you are testing.

      1 Reply Last reply Reply Quote 0
      • dailD
        dail
        last edited by

        Short answer, its not a bug, it is a feature. You can define custom code fold points by using //{ and //}

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors