@Larry-Schwartz said in Using Find All results:
licking on result’s 1 and 2 in the resultant “Line 1” or “Line 2” highlighted the string TV in BOTH lines in the file.
Ah, you are confusing the search’s selection and active line with the “smart highlighting” feature of Notepad++.
Go into the editor; double-click on tv. If you are using default colors, you will see 3 colors involved:
e2ea2811-edd8-4dc4-857b-342f8ce45cf3-image.png
Line 1 has the “Current Line Background” (the bluish-gray)
Line 1’s tv is highlighted with both the “Selected Text Colour” background (darker gray) and the “Smart Highlighting” (bright green) background, which combine to make a darker greeen background
Line 2’s tv is highlighted with just the “Smart Highlighting” (bright green) background
When you use Find All’s Search Results window, double-clicking on the result line will (1) set that line active (give it “Current Line Background”) and 2) select the match (tv) with the active editor selection (“Selected Text Colour”), and 3) if you have Smart Highlighting enabled (it is by default; see Settings > Preferences > Highlighting > Smart Highlighting)
It is both selecting the active match and doing the Smart Highlighting. If you don’t like Smart Highlighting, turn it off – if you do, then it will look more like this new screenshot, and will no longer have the green Smart Highlighting, so you can better tell which match is being selected:
0f7e4e70-26e6-4194-8bb8-b4f34db50aed-image.png
Please note that by default, Smart Highlight only works on complete words… so if you had searched for ntr from the entry, or done a regular expression search [nt] tv (which matches n tv from verizon tv and t tv from comcast tv), then it would not have shown the Smart Highlighting (unless you, like I, un-checked the ☐ Match whole word only setting, in which case it would show smart highlighting for just the ones that are exact matches with the active selection, regardless of whether the regular expression would have selected more)
b120d613-1932-4fce-b8df-e0fc8daf0e7f-image.png
—
References
User Manual:
Style Configurator > Global Styles: describes the “Current Line Background”, “Selected Text Colour”, and “Smart Highlighting” style definitions
User Manual:
Settings > Preferences > Highlighting: describes
Smart Highlighting