Community
    • Login

    nested keywords

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 284 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.
    • Junior MaihJ
      Junior Maih
      last edited by

      I have two keywords and one is included in the other. How can I have notepad++ recognize the longest one?

      the keywords are
      !end
      !endogenous

      The problem arises because, in the syntax highlighting, I define a folding code to be

      !for
      …
      !end

      as a result, then “!end” part of !endogenous is highlighted but not the rest

      mkupperM 1 Reply Last reply Reply Quote 0
      • mkupperM
        mkupper @Junior Maih
        last edited by

        @Junior-Maih said in nested keywords:

        I have two keywords and one is included in the other. How can I have notepad++ recognize the longest one?

        the keywords are
        !end
        !endogenous

        I have always dealt with those by putting the longer keyword before the shorter in my lists of keywords.

        !endogenous
        !end
        
        Junior MaihJ 1 Reply Last reply Reply Quote 1
        • Junior MaihJ
          Junior Maih @mkupper
          last edited by

          @mkupper
          Thank you so much for the reply. Your suggestion works for another instance (!else and !elseif) but not in the case I mentioned because I also use !end in the “Folding in code 1 style”. I have even removed !end from the list of keywords but it does not help.

          Thanks again for taking the time to reply!

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