UDL: Catching keywords enclosed in ""
-
I have been using UDL for long time for simple word highlighting. Now i come across text where words are enclosed in “”, like “note1”, and as it is in a CSV file, a line could be as:
Note0,“note1”,“note2”,note3So any tips to how i get NP++ to catch e.g. “note1” here?
br Lars
-
If you set
"as the open and close for a delimiter pair, and set that Delimiter # > Styler to allow nesting of theKeywords1-Keywords8:

if you don’t allow nesting then everything inside the quotes is colored as part of the quote:

So, with
- Ignore Case on
- Keywords1 set to
note0 note1 note2 note3 note4 - Delimiter 1 set to open:
"close:"and allowing nesting of keywords# inside
I can get the following, which I believe is what you want:

-
@PeterJones Exceptional, thanks for the help!
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