Perl foldable text block
-
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
-
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 -
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
-
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