Community
    • Login

    UDL folded comment spontaneously unfolds

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 489 Views 2 Watching
    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.
    • B Offline
      Blind SQuirreL
      last edited by

      I’m having this problem in v8.6.2.

      In my UDL, I have { } defined to enclose multi-line comments, with the ‘Allow folding of comments’ box checked. When I have a folded comment in my document, it spontaneously unfolds if the cursor is on any line above the comment and I type any key. This does not happen typing on lines below the comment. Even if the comment is unfolded, but nested inside a different folded pair of keywords, then that outer structure unfolds. This behavior is repeated for every multiline comment below the cursor. It happens regardless of which delimiters I use for the multiline comment; I tried /* */ and <- ->, among others and they all do the same thing. I modified the included TESTLANG UDL with the comment as the only configuration, and it still happens.

      This problem does not present in built-in languages. For instance, multiline /* */ comments in SQL stay folded in the same scenario.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Blind SQuirreL
        last edited by

        @Blind-SQuirreL ,

        Yep, my experiments show the behavior. You have found yet another bug in UDL. Too bad there have been no bug fixes or feature improvements in UDL in years, so even if you made an official bug report, I doubt anything would ever happen with it. (There are other longstanding UDL bugs dealing with comments and folds. FOr example, if you have one or more single-line comments at the beginning of the file, any folding that happens afterward might be off-by-one-or-more-lines from where it should be.)

        As a workaround, I suggest not using the multi-line comment definition if you want to fold that section of text; instead, use Folding in Code Style 1 if you can – or Style 2 if you’ve already used Style 1 (and are able to have newlines or spaces before and after your { and } indicators ).

        1 Reply Last reply Reply Quote 2
        • Terry RT Terry R referenced this topic on

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors