Community
    • Login

    Add folding rules to an existing language

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 414 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.
    • E
      Eli Grey
      last edited by

      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.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Eli Grey
        last edited by

        @Eli-Grey ,

        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…

        E 1 Reply Last reply Reply Quote 3
        • E
          Eli Grey @PeterJones
          last edited by

          @PeterJones oh… that seems not feasible, udl was a quite better option. Thank you for helping me make a quick decision.

          1 Reply Last reply Reply Quote 0
          • Terry RT Terry R referenced this topic on
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors