EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     Search and Highlight function in open document
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
Pancho
Posted on: 2/7/2009 11:09 pm
Just popping in
Joined: 2/7/2009
From:
Posts: 9
Search and Highlight function in open document
Hello
I need go and Highlight function by name.
1. Select text : 'HLfunc'
2. run Macro
3. go to line which contains 'function HLfunc '

Help or advice please

I tried example:
wnd = FindWindow( "EmEditorView", "" );
str = wnd.Caption;
name = document.selection.Text;
pat = 'tion\\s+'+name;
rgx = new RegExp(pat,'i');
results = str.search(rgx);
alert( 'pat: '+pat+"\nresults: "+ results);

//function HLfunc


----------------

Flat Previous Topic | Next Topic


Subject Poster Date
 » Search and Highlight function in open document Pancho 2/7/2009 11:09 pm
     Re: Search and Highlight function in open document Yutaka 2/8/2009 6:50 pm
       Re: Search and Highlight function in open document Pancho 2/8/2009 9:39 pm
         Re: Search and Highlight function in open document Yutaka 2/9/2009 10:41 am
           Re: Search and Highlight function in open document Pancho 2/9/2009 8:07 pm
             Re: Search and Highlight function in open document Pancho 2/9/2009 8:26 pm

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