Community
    • Login

    Perl foldable text block

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 2.8k 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.
    • Yves LavoieY
      Yves Lavoie
      last edited by

      Hi,

      How to add a multiline text block to the foldable possibilities of Perl language. I’d like to be able text blocks starting with ‘qq|’ and ending by ‘|’.

      Thanks,

      Yves

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

        Hello Yves-Lavoie,

        afaik, this hasn’t been implemented yet.
        But if you have big blocks of code/text which you want to fold
        you can use the hide line (ALT+h) functionality.
        Maybe worth thinking about!?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Yves LavoieY
          Yves Lavoie
          last edited by

          Hi Claudia,

          Interesting idea. It works almost like folding, except that the user has to select the lines before hiding. Yes it will help.

          IMHO, language settings should be editable. All the basis is there to augment folding.

          Thanks,

          Yves

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

            Hello Yves,

            one word of warning. Avoid using nested hides, this might confuse npp.
            Meaning, dont hide lines 2-12 if you hided lines 4-8 already.

            IMHO, language settings should be editable. All the basis is there to augment folding.

            I agree, for builtin languages we don’t have much possibility to add additional
            features or change the behaviour of the lexer. Most of it is done under the hood
            by the scintilla component. The big advantage so is speed and we don’t
            have to struggle with the lexer, which can be a pain in the …

            Cheers
            Claudia

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