Community
    • Login

    HIghlight Hardware-Addresses ("MAC")

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 2.2k Views 1 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.
    • NobsWareN Offline
      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 Offline
        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 Offline
          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

          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