• Login
Community
  • Login

Code Folding 2 breaking open folding

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 1.4k 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.
  • L
    Lycan Thrope
    last edited by Jan 10, 2022, 2:12 AM

    Hey folks.

    I hope I’m doing this right, but…one of my community testers was pointing out that there seems to be something wrong with the code folding going on. In particular code folding 2. It seems that the middle is overpowering the folding mechanism and excluding the open fold word.

    Here’s a screenshot of the resultant testing with the if/else/endwith and if/elseif/endwith and #if/#elseif/#endwith folding keywords setup in code folding 2:
    BUG_if_folders.PNG
    This one was from my original setup in the code folding box, then, I thought, maybe I missed spaced something, listed them wrong, so I went by ASCII on the opening keywords, left out the midle keywords, and then put the corresponding closing keywords. I then spaced out the middle keywords counting the spaces to separate them and this is the screenshot from the rearranged listing, same problem:
    BUG_if_folders2.PNG

    This is the UDL 2.1 instructions about how it’s supposed to look:
    folding_in_code_02.png

    Has anyone else seen this behavior, or did I screw something up?

    Here’s my debug info:
    Notepad++ v8.1.9.3 (64-bit)
    Build time : Dec 6 2021 - 19:21:37
    Path : C:\Program Files\Notepad++\notepad++.exe
    Command Line :
    Admin mode : ON
    Local Conf mode : OFF
    Cloud Config : OFF
    OS Name : Windows 10 Home (64-bit)
    OS Version : 2009
    OS Build : 19043.1415
    Current ANSI codepage : 1252
    Plugins : ComparePlugin.dll mimeTools.dll NppConverter.dll NppExport.dll NppXmlTreeviewPlugin.dll XMLTools.dll

    Lee

    E P 2 Replies Last reply Jan 10, 2022, 12:50 PM Reply Quote 0
    • E
      Ekopalypse @Lycan Thrope
      last edited by Jan 10, 2022, 12:50 PM

      @lycan-thrope

      Yes, imho there is a problem here. If you insert a line between the opening and the middle fold tag, it should work, right?
      But it should also work in your case.

      1 Reply Last reply Reply Quote 1
      • P
        PeterJones @Lycan Thrope
        last edited by Jan 10, 2022, 2:14 PM

        @lycan-thrope ,

        Please note that the same can happen with builtin languages, not just UDL:
        c50962cf-12bb-4ff3-a9ba-600cd29f14b4-image.png

        If you don’t have anything in the folding region, it doesn’t mark it as foldable.

        C is even more confusing: depending on which guidelines you use for sub-blocks, you can get different folding indications:

        e58507f7-47c7-4210-aba4-e94d944d7e6c-image.png

        L 1 Reply Last reply Jan 10, 2022, 7:20 PM Reply Quote 2
        • L
          Lycan Thrope @PeterJones
          last edited by Jan 10, 2022, 7:20 PM

          @peterjones and eko,

          Thanks, I see what you mean, and it works again. I didn’t think to put an extra line, but made sure I had the two characters that I read somewhere else that had to be after something to make it function. Didn’t think to put an extra line in there, though, normally one would have. Thanks.

          Lee

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