remove all occurrences of a format

This forum is for all Flare issues related to styles, stylesheets and XML.

remove all occurrences of a format

Postby RickHenkel on Thu Jun 12, 2008 1:01 pm

I just found out that the writers in my group are applying background colors to text to indicate different iterations of documentation to reviewers. Seems that they've been applying local formatting on the appropriate paragraphs. When they're done, they go through a project, file by file, to remove the local formatting. When I checked the code for some of their topic files, it looked to me like many of the <span> tags were still there, even though the topic didn't display any apparent local formatting.

I thought I'd at least add some <span> tags to the stylesheet so they're no longer using local formatting. But I was wondering what, if anything, I could do to make the removal of those background colors easier. I tried setting the background color of the different paragraph formats to default, but that didn't seem to help. Is there some other way to globally remove those <span> formats?

Or, on a related question, is there a different way that they could be marking their iterations?
RickHenkel
Propeller Head
 
Posts: 22
Joined: Thu Jul 19, 2007 12:18 pm

Re: remove all occurrences of a format

Postby LTinker68 on Thu Jun 12, 2008 2:57 pm

I believe MadCap Analyzer will find all inline styles for you. At which point you have the option to create a class out of them. There's probably an option to remove the styles, too. If not, then once you create the styles, you can do a find-and-replace in Flare to remove the class from the parent tag.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
LTinker68
Master Propellus Maximus
 
Posts: 7245
Joined: Thu Feb 16, 2006 9:38 pm

Re: remove all occurrences of a format

Postby RickHenkel on Fri Jun 13, 2008 8:45 am

Thanks, Lisa. I'll take a look at that, but we unfortunately have no more software money right now. Is there something I could do until we can afford Analyzer?
RickHenkel
Propeller Head
 
Posts: 22
Joined: Thu Jul 19, 2007 12:18 pm

Re: remove all occurrences of a format

Postby LTinker68 on Fri Jun 13, 2008 11:19 am

Well, you can run the trial version of Analyzer. :wink:

You can do a find-and-replace in Flare. Set it to look for the inline styles on the span tag and replace them with a class name. For instance, if the tag set is something like <span style="color:#FF0000;font-weight:bold;">Text text text</span>, then have Flare search (in the source code) for style="#FF0000;font-weight:bold;" and replace it with class="redBold" or whatever you named the class that has those style characteristics.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
LTinker68
Master Propellus Maximus
 
Posts: 7245
Joined: Thu Feb 16, 2006 9:38 pm

Re: remove all occurrences of a format

Postby RickHenkel on Fri Jun 13, 2008 12:32 pm

Thanks, Lisa.
RickHenkel
Propeller Head
 
Posts: 22
Joined: Thu Jul 19, 2007 12:18 pm


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 9 guests