In this code snippet, when you search for any text in the given search box all occurrence of that particular search term in the body are highlighted. Designed by Paul Grant.
If you are having trouble with the pen, try the archived copy on GitHub
See the Pen Search text highlight by Paul Grant (@cssinate) on CodePen.0