Community
    • Login

    Double-click select highlight only cursor occurrence?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 1.4k 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.
    • Vinnie MV
      Vinnie M
      last edited by

      When double-clicking a word (variable), it selects and highlights the word, but it also highlights other occurrences of the word. Is there a setting to not highlight other occurrences in this case, and just highlight the selected word?

      PeterJonesP Alan KilbornA 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Vinnie M
        last edited by

        @Vinnie-M

        Settings > Preferences > Highlighting, disable Smart Highlighting

        1 Reply Last reply Reply Quote 2
        • Vinnie MV
          Vinnie M
          last edited by

          Thanks!

          1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @Vinnie M
            last edited by

            @Vinnie-M said in Double-click select highlight only cursor occurrence?:

            When double-clicking a word (variable),

            I can see where this could bother someone that is not doing programming, but you used the magic word (“variable”) to make me think that you ARE doing programming.

            For programming, this kind of highlighting is invaluable and it seems like you’d never want to turn it off.

            In fact, I wish it were always on, in a dynamic sense, where you didn’t have to double-click a word to see this sort of highlighting. (OK, so I’ve written a script for myself for it to do that…)

            Vinnie MV 1 Reply Last reply Reply Quote 2
            • Vinnie MV
              Vinnie M @Alan Kilborn
              last edited by

              I am programming, but maybe it’s my brain – I just expect to see only one thing highlighted (or the current occurrence if searching/next/next, etc., so when I visually pick up multiple highlights, it’s distracting.

              I get that I may not prefer the default functionality that the majority of others prefer, and it’s not meant to say that I think it’s not working properly or missing a feature. I just noticed that there are a number of very specific control features in the app (for example, 3 different markers for blocks: circle vs. square – is it really needed? line edge size around editing area: 1 pixel or 3?)… Nothing wrong with these options – I actually like having them available to for full customizability. But if these are valid options, I think it would also be appropriate to ask “is there a setting to do this or not do that” other minor/visual-only affect.

              Alan KilbornA 1 Reply Last reply Reply Quote 0
              • Alan KilbornA
                Alan Kilborn @Vinnie M
                last edited by

                @Vinnie-M said in Double-click select highlight only cursor occurrence?:

                I just expect to see only one thing highlighted

                If you look carefully, the highlights are different. There’s the light-green for the smart highlighting, and a different color for the selected text. Of course the “different color” is a blended version of the light-green and the selected text background color, but that’s because a double-clicked word is selected and smart-highlighted simultaneously.

                for example, 3 different markers for blocks: circle vs. square

                Well, for this you mean folding markers. This type of thing is provided because the underlying component supports it; Notepad++ developers had to code very little to achieve folding, so they probably felt that they needed to do some amount of work. :-) Other settings are similar; someone else coded it, and Notepad++ developers just allow their users to turn it on/off.

                I think it would also be appropriate to ask “is there a setting to do this or not do that”

                Yes, of course, certainly. Ask away.

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