• Login
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.
  • K
    Kenn Hamers
    last edited by Jan 11, 2018, 1:29 PM

    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
    • D
      dail
      last edited by Jan 11, 2018, 4:17 PM

      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
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors