(1) I use the regex expression “on|off” to call the function “FindInFiles” to do the search.
(2) In the result, all the lines in the document which contain the word “on” or “off” would be displayed and highlighted.
This is my problem: how I can know which keyword (“on” or “off”) is highlighted in each line;
In other words, how I can get the highlighted text in the each line.
please help me, thank you very much
First increase “Search Colors” in the Display tab of configuration Properties to 2, and change “Search String (2)” to a different color.
After you search for “on|off”, in the search results, you will need to find “on” first, and then “off” next time.