Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Highlighting text in a Browser?(I want to be able to show search results)
icon5.gif  Highlighting text in a Browser? [message #683567] Tue, 14 June 2011 02:18 Go to next message
SBS  is currently offline SBS Friend
Messages: 57
Registered: January 2011
Member
Is it possible to somehow highlight text within a Browser like when you display the results of a search?

Thanks,

-sbs
(no subject) [message #683837 is a reply to message #683567] Tue, 14 June 2011 13:34 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi,

You need to execute some JS to modify the DOM. For an example of this
which changes the page's background color see
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet161.java?view=co
.. For your case you probably need to change the "background-color:"
attribute of the font surrounding the section that is to be highlighted.

Grant


On 6/13/2011 10:18 PM, SBS wrote:
> Is it possible to somehow highlight text within a Browser like when you
> display the results of a search?
>
> Thanks,
>
> -sbs
Previous Topic:Miller Columns
Next Topic:Using JAWS with a Table widget
Goto Forum:
  


Current Time: Thu Apr 25 00:42:42 GMT 2024

Powered by FUDForum. Page generated in 0.02609 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top