I do not know the low level functions for doing this, but it is possible. We use a tool called CodeMirror on our project. It is a rich text area with code parser and syntax highlight. There are methods it the api to select portion of text.
http://codemirror.net/ <http://codemirror.net/> 2010/11/21 Gaurav Vaish <gaurav.va...@gmail.com> > IMHO, there's no Javascript API to select only a part of text in text- > area... would be happy to be proven wrong. > > > -- > Happy Hacking, > Gaurav Vaish > http://www.mastergaurav.com > > > On Nov 20, 11:20 am, Yu <yfan...@gmail.com> wrote: > > Hi, > > > > I'd like to highlight the word under the mouse as the mouse pointer > > move around in a TextArea. But I haven't found any API to do that? > > > > Could you please help? > > > > Thanks, > > > > Yu > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.