Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    HIghlight Hardware-Addresses ("MAC")

    Help wanted · · · – – – · · ·
    3
    3
    1208
    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.
    • NobsWare
      NobsWare last edited by

      I tried to highlight a hardware address like 44:8a:5b:a1:e6:95 in a log of DHCP. I set the extended highlight delimiter to ’ ’ and ‘;’ and ctrl-doubleclicked.

      Then I get grey highlight and no other occurances of the same MAC are highlighted. When I do the highlight “manually” with left-click and drag, it starts with a green highlight which switches to a grey highlight when crossing the first ‘:’ .

      How do I configure NPP to highlight anything I want and highlight other occurances as well, regardless of what kind of characters are in the selection?

      1 Reply Last reply Reply Quote 0
      • gstavi
        gstavi last edited by

        Could not figure out what exactly you want to highlight but if I wanted to follow several MAC addresses or IP addresses in a log I would use:
        right click->Style token
        To apply style(s) to the addresses I care about.

        1 Reply Last reply Reply Quote 2
        • guy038
          guy038 last edited by

          Hello, @nobsware and All,

          • Execute the Search > Mark... menu option

          • Insert the regex (?i)(?:(?1):){5}([[:xdigit:]]{2}) in the Find what: zone

          • UNtick the Bookmark line , if necessary

          • Tick the Wrap around option

          • Select the Regular expression search mode

          • Click on the Mark All button


          To navigate between all these hardware addresses, use the two options :

          • Search > Jump up > Find Style Ctrl+Shift+0

          • Search > Jump down > Find Style Ctrl+0


          To suppress these Find highlighting, use the Search > Mark... menu option first, then click on the Clear all marks button

          Best Regards,

          guy038

          1 Reply Last reply Reply Quote 2
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors