• Login
Community
  • Login

Perl foldable text block

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 2.9k 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.
  • Y
    Yves Lavoie
    last edited by Jan 1, 2016, 11:32 PM

    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

    C 1 Reply Last reply Jan 2, 2016, 1:51 AM Reply Quote 0
    • C
      Claudia Frank @Yves Lavoie
      last edited by Jan 2, 2016, 1:51 AM

      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
      • Y
        Yves Lavoie
        last edited by Jan 2, 2016, 3:39 AM

        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
        • C
          Claudia Frank
          last edited by Jan 2, 2016, 4:48 AM

          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
          3 out of 4
          • First post
            3/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors