Community
    • Login

    HowTo or Enhancement: Double-Click doesn't include words that contain a dash, and auto-highlighting doesn't highlight all strings that match the selected text

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 855 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.
    • KyferEzK
      KyferEz
      last edited by KyferEz

      Is there any way to get N++ to, when you doubleclick a word that contains dashes, to select the entire string, the same as it does for underscores?

      For example, if I have this text “wildcard-cert-key”, and I doubleclick cert, it only selects cert. I want it to auto-select the entire string “wildcard-cert-key”.

      Furthermore, the auto-highlighting of words will, in the above example, highlight “cert” everywhere; however if the entire “wildcard-cert-key” string is manually highlighted, I want that to be highlighted everywhere.

      Another Example: If I highlight “ca cert-key”, then everywhere that text string exists should be auto-highlighted.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones
        last edited by

        @KyferEz , Welcome to the Notepad++ Community.

        Settings> Preferences > Delimiter, enable ☑Add your character as part of word, and include the hyphen - (and any other punctuation you want considered part of a “word”).

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