Click to See Complete Forum and Search --> : Java HTML highlighting


JizJizJiz
05-25-2006, 01:55 AM
Hi all:

Is there a Java library to take in a set of HTML files, highlight all occurrences of a specific keyword in those files, and then output the files that are highlighted?

Thanks.

Khalid Ali
05-25-2006, 12:54 PM
I am not sure if there is a library, however writing such thing won't be too bad at all. I am thinking how to implement such thing.
1. You request from a webpage with a search string that needs to be highlighted in a group of html pages.
2. send this request to a server or an independant desktop running application.
3. the program runs thru the group pages and finds the search string and adds some specific style tags around it to make it bold/highlighted.
4.thos pages are now ready to be served again.
5. Here is the issue, you will have to request for those pages to see the difference and you will need to remove those changes before any one else will request for those pages?

does this sound a workable solution...?