Double quotes
-
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? -
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. -
This post is deleted!
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