Click here to Skip to main content
15,176,948 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
I will be making a dictionary translator application that uses php programming and I have no idea on how to highlight the listed words being search by the user.

Here is the link for the example of searching that highlights specific words in the list and displaying of results.[^]

Is there any link that I can read? I need some ideas for this important matter.
Updated 10-Aug-15 20:44pm
venkatpvc 11-Aug-15 4:19am
you cannot do this by php, it can be done by Javascript, there is a lot jquery plugin which can help you on this, please google for " Search Highlight Jquery Plugin"
Member 11857988 12-Aug-15 6:17am
Don't realy get your question, and ur link doesn't work. But i just wrote an webapplication that uses a search background, and a string got returned that also contains the words i searched for. You can try to print them with html tags. For examle echo "<span style"color:yellow">$string_to_get_highlighted</span>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900