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
!endogenousThe problem arises because, in the syntax highlighting, I define a folding code to be
!for
…
!endas a result, then “!end” part of !endogenous is highlighted but not the rest
-
@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
!endogenousI have always dealt with those by putting the longer keyword before the shorter in my lists of keywords.
!endogenous !end -
@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!
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