• Login
Community
  • Login

How to define a UDL Delimiter with spaces

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 4.9k 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.
  • S
    swinster
    last edited by Dec 29, 2016, 3:11 PM

    Hi All,

    I believe this is similar to the topic at https://notepad-plus-plus.org/community/topic/12991/language-definition-space-in-comment-definition, although perhaps sufficiently different to requires a separate post.

    I have been using the the UDL for my own nefarious purposes, not for syntax highlighting, but rather to highlight event entries in large log files. This, by and large, has worked OK. I am using a Delimiter Open event such as Level="ERROR", that could appear in the middle to a log entry, and a Close of ((EOL)).

    However, I now wish to highlight a single entry that has spaces within in, such that the Open delimiter would be Message="ICE failed event". Of course, this fails as UDL is taking the spaces to mean separate delimiters. I have tried encasing the term in single quotes at various points, but can’t seem to get this to work.

    The term will also actually appear in a line that has had a style applied due to a Level="INFO" delimiter, so I will need to next one inside the other. An example log line would be:

    2016-12-28T04:20:39.039+00:00 node1 2016-12-28 04:20:39,039 Level="INFO" Name="support.ice" Message="ICE failed event" Media-type="audio" Stream-id="0" Component-id="RTP" Call-id="237a5bea59f9479f828330183a34a3b4"
    

    Regards,

    1 Reply Last reply Reply Quote 0
    • S
      swinster
      last edited by Jan 12, 2017, 2:05 PM

      I take it there is no way to achieve this as yet in Notepad++?

      C 1 Reply Last reply Jan 12, 2017, 2:25 PM Reply Quote 0
      • C
        Claudia Frank @swinster
        last edited by Jan 12, 2017, 2:25 PM

        @swinster

        what about using operators 2 with something like “ICE failed event”,
        it doesn’t color Message= so.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • J
          Js jS
          last edited by Jan 27, 2017, 8:33 AM

          operators & delimiters
          delimiter 1 style

          open: Message="

          close: "

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