Applying formatting when doing Find and Replace

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
Karina
Jr. Propeller Head
Posts: 2
Joined: Mon Sep 27, 2010 7:11 pm
Location: Melbourne, Australia

Applying formatting when doing Find and Replace

Post by Karina »

Does anyone know how to apply a superscript format when doing a Find and Replace?

i.e Find 'SystemName2' and replace the '2' with a superscript 2

I can use the text editor's Superscript button to manually update each time, but I want a faster method.

Any suggestions appreciated.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2634
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Applying formatting when doing Find and Replace

Post by ChoccieMuffin »

In a topic somewhere safe, insert the thing you want to change it to and then change to text editor to see exactly what you need to put in your "Change to" box. When doing your search and replace, check the "find in source code" checkbox.

I find it very helpful to have a "test topic" topic to play with, which I have given a condition that I exclude from every output.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Applying formatting when doing Find and Replace

Post by LTinker68 »

You'd want to do a search on SystemName2 and replace it with SystemName<sup>2</sup>. Make you have the option "Find in source code" enabled, otherwise you'll see SystemName<sup>2</sup> in your content pages instead of SystemName².
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2634
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Applying formatting when doing Find and Replace

Post by ChoccieMuffin »

And you may have to play around with the attributes of <sup> in your stylesheet to get the effect you want.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Post Reply