I'm trying to find an elegant way to bold each of our products names every time they're used in the copy style. Sometimes they'll have the company's name first, for example Adobe InDesign some of the time, but just InDesign at other times. We don't want to bold the company name every time it's used, only when it's combined with the product name.
The below works in the Find GREP, but not in my GREP style:
(?<=Company)|(?<!Comapny) Productname1|Productname2|Productname3|Productname4|Productname5
Right now I have the following in my GREP style:
(Company Productname1|Productname1|Company Productname2|Productname2|Company Productname3|Productname3| Company Productname4|Productname4| Company Productname5|Productname5)
It's long, ungly and hard to edit (especially in the one line you get in the dialog box). We frequently have to add and modify product names and it'd be easier if we only had to do so in one spot.
Additionally, is there any way to make the GREP style reference an outside text file containing all this info? We have multiple brochures using this GREP style and have to remember to open and update each style when a product is added or renamed. Worse, there are multiple styles referencing the same list (body bopy, headers, captions)!
I'm still working on learning GREP as I go, any help will be most appreciated! Thank you :-)