[thelist] Highlighting a keyword within posting retrieved
Hassan Schroeder
hassan.schroeder at gmail.com
Sat Apr 21 21:51:53 CDT 2007
On 4/21/07, klute <soundres9 at yahoo.com> wrote:
> I run a job search site and am thinking of adding a
> feature where whenever a user searches for a job by a
> keyword, each resulting posting will have that keyword
> highlighted. I have no idea how to approach this
> "highlighting" trick. Any pointers?
java.util.regex.* is probably the bulk of it :-)
Either process in the view or post-process in a Filter, but either way
you'll have to wrap the keyword in an additional element (SPAN or
EM or whatever) and style that.
HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder at gmail.com
More information about the thelist
mailing list