How to remove highlighting created from SearchEngine.find

Questions on using RSyntaxTextArea should go here.

Moderator: robert

How to remove highlighting created from SearchEngine.find

Postby kosmos891 » Thu Aug 01, 2013 5:36 am

I use the SearchEngine.find method to find instances of a specified string.

How do I remove the highlighting of the instance?
kosmos891
 
Posts: 5
Joined: Tue Jul 30, 2013 8:10 pm

Re: How to remove highlighting created from SearchEngine.fin

Postby robert » Tue Aug 06, 2013 1:11 pm

I'm not sure what highlights you're referring to; SearchEngine only selects the text found (or replaced), it doesn't add any special highlights. Are you referring to the "mark all" highlights, or perhaps those left by "mark occurrences"?
User avatar
robert
 
Posts: 788
Joined: Sat May 10, 2008 5:16 pm

Re: How to remove highlighting created from SearchEngine.fin

Postby kosmos891 » Wed Aug 07, 2013 9:59 am

@robert, thanks for your reply
Sorry I was wrong.
SearchEngine only selects the text found

I thought that SearchEngine highlights the text found.
I am a new programmer. Now it's clear. I want to deselect selected text in RSyntaxTextArea.

Code: Select all
int end = rsyntaxTextArea.getSelectionEnd();
rsyntaxTextArea.setSelectionStart(end);
rsyntaxTextArea.setSelectionEnd(end);


Thanks again
kosmos891
 
Posts: 5
Joined: Tue Jul 30, 2013 8:10 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron