Community
    • Login

    HIghlight Hardware-Addresses ("MAC")

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 1.8k 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.
    • NobsWareN
      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
      • gstaviG
        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
        • guy038G
          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
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors