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