Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Perl foldable text block

    Help wanted · · · – – – · · ·
    2
    4
    2511
    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 Lavoie
      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 Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        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 Lavoie
          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 Frank
            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
            Copyright © 2014 NodeBB Forums | Contributors