# Help with highlight

**URL:** <https://www.ruby-forum.com/t/help-with-highlight/107456>\
**Category:** Rails\
**Created:** [June 21, 2007, 11:18pm UTC](https://www.ruby-forum.com/t/help-with-highlight/107456 "2007-06-21T23:18:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlie\_caroff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a587f6/32.png) [@charlie\_caroff](https://www.ruby-forum.com/u/charlie_caroff)\
**Post date:** [June 21, 2007, 11:18pm UTC](https://www.ruby-forum.com/t/help-with-highlight/107456/1 "2007-06-21T23:18:48Z")

</div>

Hi, I have a search box and seach results on my website. I have  
TextHelper’s hightlight working fine, but in addition to highlighting  
a phrase, I’d like to highlight the occurrence of each word in that  
phrase, in all search results.

I’m sure this has been done, but I can’t find it anywhere. Any hints?

Thanks,

Charlie
