Community
    • Login

    UDL Comment Folding

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 1.3k Views 1 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.
    • Felix TF Offline
      Felix T
      last edited by

      Hi,

      $* is my line comment style.
      Can also be $******* (full line) for asthetics. | generates an inline comment (works ok).
      $Log starts a comment block (is placed inside $* comment line) and is not specifically terminated expect a $* is always occuring afterwards.

      I created a comment line style with $* | without continuing or closeing signs.

      My comment stlye is Open: $Log and Close: $*

      I enabled nesting in the options and is works OK.

      But folding is only working on line comments. Am I breaking the limits of notepad++ or missing something?

      Sample Data and Configuration

      Regards

      Meta ChuhM 2 Replies Last reply Reply Quote 0
      • Meta ChuhM Offline
        Meta Chuh moderator @Felix T
        last edited by

        welcome to the notepad++ community, @Felix-T

        here’s your screenshot with corrected markdown syntax ![](https://i.imgur.com/ZjVrqzt.png) for reader’s convenience.

        answers might follow, as soon as a community member with udl experience has time to have a look at this.

        1 Reply Last reply Reply Quote 1
        • Meta ChuhM Offline
          Meta Chuh moderator @Felix T
          last edited by

          @Felix-T

          this is very tricky, due to line comment open and block comment close being the same, no really unique open and close strings we could use, and the nesting in addition to that.

          i had some limited success using folding in comment styles, but as the folder rules overlap, it can come to glitches, triggering either one or the other fold rule.

          here’s a screencast of it, maybe you find something useful.
          Imgur

          1 Reply Last reply Reply Quote 1
          • Felix TF Offline
            Felix T
            last edited by

            Thanks so far and also for helping with the encoding.
            I forgot to mention that regular lines can also be encoded using keywords and a dollar: $Time, $File. So a lone opening $ is not working.

            1 Reply Last reply Reply Quote 0

            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