View Single Post
Old 12-10-2015, 12:50 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by estrellanavidad View Post
Hi I would like to know if there is anyway to change the color o background color of the same word in the whole book. For example everytime the word house appears is in blue or highlighted.

I figured how to do it one mention at a time but I was hoping for a quicker way because I have like 3000 thousand books I have to do it to.

Thank you so much
Wrap it in a span

search: \b(house)\b
Replace: <span class="makeblue">\1</span>

CSS: span.makeblue {background-color: blue;}

note, I limit the check for only the word House (not housekeeping) by looking at a boundary . I use the capture solely to make the replace simple
theducks is offline   Reply With Quote