EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     Find Selected Text
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
shreyank
Posted on: 7/19/2012 9:30 am
Just popping in
Joined: 7/19/2012
From:
Posts: 3
Find Selected Text
Hello,
Is there a way to find the next instance of the currently selected text. So that when you run this command with a selected piece of text, the application would move to the next sequence of that text and highlight all sequences of that text in the document. This would be analogous to the "Find Selected Text" command in BBEdit and "Quick Find" in Sublime Text.
thanks,
-shrey
Stefan
Posted on: 7/19/2012 10:36 am
Home away from home
Joined: 7/14/2008
From: Germany, EU
Posts: 262
Re: Find highlight all occurrences of Selected word
Hi shrey, welcome.

1.) Normal that is done by pressing Ctrl+F3 (Shift+F3 for backwards)

BTW, It is enough to have the cursor on an word or sign.
No need to select something.
This works even for signs like "=" without selecting first.


2.) Since that is an kind of an search,
all other occurrences are highlighted too.

See "Tools > ...Config.. > [Display] Search String" for settings.
And with "Search Colors [ 1]" you can even set to highlight
more then just the last search but the last two, or three, or...


3.) To remove that current highlighting from view, press Alt+F3.




Example:
Having the cursor somewhere inside of the word "sc|ript".
Pressing now the key combination "Ctrl+F3"
will jump to the next occurrence of that word
AND search-highlight all occurrences of that word in the whole document.

Pressing "Shift+F3" jumps backwards to the last occurrence.
Pressing "Alt+F3" will remove the highlighting from view.



<script src='xxx/scripts/shCore.js'></script> 
<script src='xxx/scripts/shBrushCpp.js'></script> 
<script src='xxx/scripts/shBrushCSharp.js'></script> 


HTH?


BTW: to highlight some words on demand, you may want
to take an look at MARKERS > http://www.emeditor.com/modules/feature1/rewrite/tc_39.html

.
shreyank
Posted on: 7/20/2012 5:20 am
Just popping in
Joined: 7/19/2012
From:
Posts: 3
Re: Find highlight all occurrences of Selected word
Thanks for the fast reply. That's exactly what I'm looking for. And the new markers feature is awesome!
-shrey
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文