Add folding rules to an existing language
-
I know how to add folding with udl for some language specified with extension. But I want to add only one folding character to some language and don’t want to configure all the settings with udl. Is there any way to add folding rules to an existing language?
I looked for setting xml files in Program data and Appdata folder and cannot figure out where is the setting related to the folding ruld.
-
If you are trying to add folding rules to one of the built-in langauges: there aren’t any settings for that because the rules for those are compiled in the Notead++ source code rather than coming from the simplistic choices that are available to UDLs.
And, in fact, they come from the “Lexilla” library which Notepad++ uses , so Notepad++ developers couldn’t give you what you wanted. You would have to ask Lexilla to add the ability to customize folding on all the languages Lexilla supports, which would require them to re-write the code for scores of lexers to handle it… which I doubt they’d do. You might have better luck requesting an additional folding rule for a single language, but they’d have to agree it was reasonable for that language, and then spend the time implementing it and releasing it, and then you’d have to wait for Notepad++ to update their copy of the Lexilla library and release a version that had it…
-
@PeterJones oh… that seems not feasible, udl was a quite better option. Thank you for helping me make a quick decision.
-