Community
    • Login

    code block trigger string doesnt work when first character is ";"

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    8 Posts 3 Posters 3.6k 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.
    • waskomaW
      waskoma
      last edited by

      any workaround? my compiler uses ; for comments so making this work would help. my other option is enclose the trigger string into .comment and .endc. tags :/ any help would be much appreciatd. thanks in advance guys. :)

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @waskoma
        last edited by

        @waskoma

        sorry don’t understand your question?
        Could you clarify it? Maybe with a screenshot?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • waskomaW
          waskoma
          last edited by

          you can define what string you want to use for code folding, you can define what string will trigger the start of a foldable block and what will be the end of it.

          if this string starts with “;” then the “+” sign for folding never appears.

          so for example “codeblockstart” works but “;clodeblockstart” doesnt.

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @waskoma
            last edited by

            @waskoma

            so you talking about udl, do you?
            If so, did you try semicolon followed by a space as folding in comment line open chars?
            Seems to work.

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 1
            • waskomaW
              waskoma
              last edited by

              yes, this is for a user defined language. tried now with space still doesnt work. what version you have ? I have v6.9.2. on win 8.1.

              1 Reply Last reply Reply Quote 0
              • waskomaW
                waskoma
                last edited by

                btw a few years ago this worked

                Claudia FrankC 1 Reply Last reply Reply Quote 0
                • Claudia FrankC
                  Claudia Frank @waskoma
                  last edited by

                  @waskoma

                  I’m using windows xp and 7 and npp 6.9.
                  Because of this bug
                  I cannot upgrade to 6.9.2

                  I will download the portable version and do some test to see if there is an easy solution on this.

                  Cheers
                  Claudia

                  PeterJonesP 1 Reply Last reply Reply Quote 0
                  • PeterJonesP PeterJones referenced this topic on
                  • PeterJonesP
                    PeterJones @Claudia Frank
                    last edited by PeterJones

                    Future Readers,

                    As mentioned in a 2023 follow-on conversation:

                    the “problem” was because ; was defined as the start of a comment for comment-highlighting. The UDL parser doesn’t look for Fold in code 1 or Fold in code 2 keywords for folding when they are contained in Comment lines. Instead, if ; is defined as the start-of-comment-line in the Comment & Number tab, then on the Folder & Default tab, you can define Folding in comment’s open/close pair, and that will allow a special keyword pair to work for folding using comments to start and end the folding. This is true in 2023’s v8.5.3, and this was true in 2016’s v6.9.2.

                    Follow-up discussion on this should go in the follow-on conversation rather than in this ancient conversation, which is being locked.

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