This content has been marked as final. Show 4 replies
FAR from http://www.helpware.net will find each one and you can choose to replace or skip. BKReplaceEM (Google it) will do a find and replace but I am not sure if you can see each Find and choose whether to replace or skip.
RoboHelp's Multi-File Find and Replace (in the Tools tab) should be suitable for this job, and you can control each occurrence as you choose. (Where this RH utility fails is when your search string might sit on more than one line, which won't be the case here.)
You'll run two replacement passes (spaces added to < & > tags for proper viewing in this forum):
Replace < h2 > with < p class=YourNewStyle >
Replace < /h2 > with < /p >
The < h2 > and < /h2 > strings will never be split between lines, so RH will catch every one.
BTW, Add me to the list of FAR boosters; it'll let you change case, change file names, etc., etc., etc. Great tool!
Thanks! This is great -but I have a follow-up question - I was able to do this with one pass, changing
< h2 > mytext < /h2 >
to < p class=MyNewStyle > mytext < /p >
but although both h2 and MyNewStyle are bold - the replaced text is no longer bold. Is that because I did the change with a single pass? Ideas?
The reason I suggested two passes was to prevent any problems with the head title at all.
You did, however, remove the spaces before and after the tags, didn't you? As I said earlier, "(spaces added to < & > tags for proper viewing in this forum)." I'd go back to your original set of files and do two passes.