Replace class across project

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
JoeWeinmunson
Propeller Head
Posts: 26
Joined: Tue Oct 30, 2018 12:05 pm

Replace class across project

Post by JoeWeinmunson »

The problem: I created an inline style called "button" so I could style descriptions of buttons in our software. The problem doesn't appear when generating CHM files, but when building for HTML5 output Flare gets mixed up because it has its own "button" style. So, here's what I want to do: have flare go through the code in all 308 topics and replace

Code: Select all

span class="button"
with

Code: Select all

<span class="TFbutton">
. I'd think there's a way to do that with a Find/Replace but I must be missing something subtle.
andrewb
Propeller Head
Posts: 16
Joined: Sun Aug 16, 2015 3:40 pm
Location: Brisbane, Australia

Re: Replace class across project

Post by andrewb »

You were on the right track with Find/Replace. Go to the Find Elements tab, select Class in the Find drop-down. Then select Replace Class in the Replace/Action drop-down and then type 'button' in the first box and "TFbutton" in the second. If required, specify where you want to replace the class, and the file types.
Image
You do not have the required permissions to view the files attached to this post.
JoeWeinmunson
Propeller Head
Posts: 26
Joined: Tue Oct 30, 2018 12:05 pm

Re: Replace class across project

Post by JoeWeinmunson »

Thank you SO MUCH. I was up against a deadline tomorrow (I should have investigated the output more thoroughly) and this really saves my bacon. If you're ever in Vermont I owe you a beer.
Post Reply