[5751#8] How to factorise show rules for some text?

@ensko wrote a great post about this topic here:

Using that post as a guide, something like this should work for your case:

#let words = ("ipsum", "sit")
#show regex(words.join("|")): set text(red)//Change font here

#lorem(10)
3 Likes