Community
    • Login

    Double quotes

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 304 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.
    • Andrey FedorchukA
      Andrey Fedorchuk
      last edited by

      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?

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Andrey Fedorchuk
        last edited by

        @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
        • Muhammad Ahmed Ali Shabbir HussainM
          Muhammad Ahmed Ali Shabbir Hussain
          last edited by

          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