4 Replies Latest reply on Apr 30, 2007 12:30 PM by MergeThis

    Find and replace by text and style

    twimom Level 1
      We have a fairly large RH HTML project (300+ topics so far) most of which have a specific heading in Heading2 style. We want to change all of these to a style based on Heading2, but not use the Heading2 style b/c we don't want them to show up in the TOC. I have created a new style and can obviously open every topic and manually select and change each one - but I'm hoping that one of your RH gurus will tell me an easier way. Is there anything comparable to MS Words Find/Replace that will search the whole project for a specific word in a specific style?
        • 1. Re: Find and replace by text and style
          Peter Grainge Adobe Community Professional (Moderator)
          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.

          • 2. Re: Find and replace by text and style
            MergeThis Level 4
            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!


            Good luck,
            Leon
            • 3. Re: Find and replace by text and style
              twimom Level 1
              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?
              • 4. Re: Find and replace by text and style
                MergeThis Level 4
                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.


                Good luck,
                Leon