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.

https://photos-3.dropbox.com/t/2/AABFNx5B0otaULVATeME4JHzKPqrfSsjC9iSb3I4iUkdzQ/12/311342099/jpeg/32x32/1/1439276400/0/2/pic.JPG/CJPoupQBIAEgAiADIAQgBSAGIAcoAg/cRdIn1Lnunlv9RJ1PJiusv-s0LNn-gWtbLoL7sWQ2VM?size_mode=5[^]

Is there any link that I can read? I need some ideas for this important matter.
Posted
Updated 10-Aug-15 20:44pm
v2
Comments
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