Community
    • Login

    code folding with multi-part keywords

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    folding
    4 Posts 1 Posters 3.3k 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.
    • Nicolas-N
      Nicolas-
      last edited by

      Hello,

      I try to fold a code according a user defined language. The keywords used to define the beginning and the end of the folding are a sequence of two words (namely BEGIN CASE and END CASE). The middle keyword is CASE. As described in the UDL2.0 website ([http://udl20.weebly.com/folding-in-code.html]), I use the quotation mark (") to enclose the beginning and ending keywords.

      Nevertheless, the folding does not behave as expected as can be seen with the following example :

      BEGIN CASE
      CASE cond1
        IF cond11 THEN
          blah
        END
      CASE cond2
        code
      END CASE
      foo
      

      The folding ends at the “blah” line, considering wrongly that “END\nCASE” is the end keyword. How can I fix that ?

      Best

      1 Reply Last reply Reply Quote 0
      • Nicolas-N
        Nicolas-
        last edited by

        no idea ?? :(

        1 Reply Last reply Reply Quote 0
        • Nicolas-N
          Nicolas-
          last edited by

          And by the way, the debug informations:

          Notepad++ v6.9.1
          Build time : Mar 28 2016 - 19:48:40
          Path : C:\Program Files (x86)\Notepad++\notepad++.exe
          Admin mode : ON
          Local Conf mode : OFF
          OS : Windows 7
          Plugins : mimeTools.dll NppConverter.dll NppExport.dll NppFTP.dll PluginManager.dll SpellChecker.dll

          1 Reply Last reply Reply Quote 0
          • Nicolas-N
            Nicolas-
            last edited by

            Ok, I guess really no one knows how to fix/improve that ?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors