You can simply use the Find in Selection
option in the Find
panel. Select the text that you want to search in:
then hit CtrlF to open the Find
panel. Type in the text you want to find (such as element
), then, in the group of buttons to the left of the text area, click the second button from the right - In Selection
(highlighted in red):
Finally, either hit AltEnter or click Find All
to select all the instances of element
in the selected area:
and you're good to go.