• Login
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.
  • W
    waskoma
    last edited by Jun 19, 2016, 3:06 PM

    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. :)

    C 1 Reply Last reply Jun 20, 2016, 1:19 AM Reply Quote 0
    • C
      Claudia Frank @waskoma
      last edited by Jun 20, 2016, 1:19 AM

      @waskoma

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

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • W
        waskoma
        last edited by Jun 22, 2016, 11:40 AM

        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.

        C 1 Reply Last reply Jun 24, 2016, 11:00 PM Reply Quote 0
        • C
          Claudia Frank @waskoma
          last edited by Jun 24, 2016, 11:00 PM

          @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
          • W
            waskoma
            last edited by Jun 30, 2016, 8:28 AM

            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
            • W
              waskoma
              last edited by Jun 30, 2016, 12:27 PM

              btw a few years ago this worked

              C 1 Reply Last reply Jun 30, 2016, 11:09 PM Reply Quote 0
              • C
                Claudia Frank @waskoma
                last edited by Jun 30, 2016, 11:09 PM

                @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

                P 1 Reply Last reply May 22, 2023, 5:25 PM Reply Quote 0
                • P PeterJones referenced this topic on May 22, 2023, 4:58 PM
                • P
                  PeterJones @Claudia Frank
                  last edited by PeterJones May 22, 2023, 5:26 PM May 22, 2023, 5:25 PM

                  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
                  • P PeterJones locked this topic on May 22, 2023, 5:25 PM
                  6 out of 8
                  • First post
                    6/8
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors