Regex keyword list
-
Hello! I hope you are well! I have a question: does notepad++ support regex in the list of keywords for a UDL?
Thanks. -
No, it does not.
However, you can use the EnhanceAnyLexer plugin to use a regex to change the foreground color on words for a UDL.
Assuming you had a udl called
MyUDL, then the config section[MyUDL] 0x0000FF = \bword\d+\b 0x00FF00 = \bgreen_\w+\bthat would color
word1orword987as red, and anything starting withgreen_using a green foreground.Using that idea, you could define most of your UDL’s keywords in the normal UDL interface, and add EnhanceAnyLexer to do additional keywords using regex
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