Community
    • Login

    Double quotes

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 585 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.
    • Andrey FedorchukA Offline
      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 Online
        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 Offline
          Muhammad Ahmed Ali Shabbir Hussain
          last edited by

          This post is deleted!
          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