Community
    • Login

    code folding with multi-part keywords

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    folding
    4 Posts 1 Posters 3.6k Views 2 Watching
    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 Offline
      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 Offline
        Nicolas-
        last edited by

        no idea ?? :(

        1 Reply Last reply Reply Quote 0
        • Nicolas-N Offline
          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 Offline
            Nicolas-
            last edited by

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

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors