• Login
Community
  • Login

Double quotes

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 308 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.
  • A
    Andrey Fedorchuk
    last edited by Aug 26, 2022, 12:33 PM

    Hello.
    I use my own syntax to work with the OpenWRT system log.
    But I couldn’t add a string containing double quotes to the keyword list:

    Successful ping of the target “net-check” on interface modem 1 (wwan0)

    I’ve tried enclosing this phrase in single quotes, but it doesn’t work.
    Does anyone know how to solve this problem?

    P 1 Reply Last reply Aug 26, 2022, 3:54 PM Reply Quote 0
    • P
      PeterJones @Andrey Fedorchuk
      last edited by Aug 26, 2022, 3:54 PM

      @Andrey-Fedorchuk ,

      UDL wasn’t really intended for “phrases”; it was meant as a simple keyword/operator highlighter. In certain fields (the folding fields and the delimiter fields), you can put double-quotes around phrases so that the space will be part of the folding-trigger or delimiter… but I don’t know of a way that allows embedding quotes inside a multi-word phrase. Sorry.

      You might want to look into the AnalysePlugin – it’s reason for existing is to make navigating/searching/highlighting large logfiles easier.

      Alternately, the EnhanceAnyLexer will allow you to change the foreground color of strings matching regexes, so if you have an OpenWRT UDL, then making a [OpenWRT] section in the EnhanceAnyLexer config will allow you to define regex-based rules, which could use a regex like ^Successful ping of the target.*$ for matching any line starting with those… or if you want only the exact, then do the exact line.

      1 Reply Last reply Reply Quote 0
      • M
        Muhammad Ahmed Ali Shabbir Hussain
        last edited by Sep 11, 2023, 1:34 PM

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