Community
    • Login

    UDL: Catching keywords enclosed in ""

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

          @PeterJones Exceptional, thanks for the help!

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