Community
    • Login

    UDL: Catching keywords enclosed in ""

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 389 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.
    • Lars RasmussenL Offline
      Lars Rasmussen
      last edited by

      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”,note3

      So any tips to how i get NP++ to catch e.g. “note1” here?

      br Lars

      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP Offline
        PeterJones @Lars Rasmussen
        last edited by

        @Lars-Rasmussen ,

        If you set " as the open and close for a delimiter pair, and set that Delimiter # > Styler to allow nesting of the Keywords1 - Keywords8:
        04f3b62f-3a56-4052-9496-b66c31f74e03-image.png

        if you don’t allow nesting then everything inside the quotes is colored as part of the quote:
        63eea842-cb29-4d19-97bf-cf453c295c51-image.png

        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:
        59600b78-650e-4c5a-a8ae-1ae0cb6eea60-image.png

        Lars RasmussenL 1 Reply Last reply Reply Quote 4
        • Lars RasmussenL Offline
          Lars Rasmussen @PeterJones
          last edited by

          @PeterJones Exceptional, thanks for the help!

          1 Reply Last reply Reply Quote 1

          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