• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Searching in RoboHelp HTML

New Here ,
Jan 22, 2007 Jan 22, 2007

Copy link to clipboard

Copied

Dear group,

I'm hoping this is a common question with an easy answer....

The find function in RoboHelp HTML makes it possible to find text in the topic title - but how do I do a search for text (a word or phrase) within the topics themselves?

When our application's help was authored in Microsoft Word (and compiled to WinHelp) this was an easy and frequent operation. Now that we have converted to RoboHelp HTML and compiling to HTMLHelp - I'm stuck.

The closest I've got is using the "Mutli-file find and replace" tool - but the view and edit buttons do not seem to open the topic in RoboHelp's editor - not very joined up!

Any ideas?

Robin



Views

744

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 22, 2007 Jan 22, 2007

Copy link to clipboard

Copied

I just use control F and it's works fine for me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 22, 2007 Jan 22, 2007

Copy link to clipboard

Copied

Control F searches for a word or phrase within a single topic, it does not search every topic in a project.

I've had the same issues that IonicRobin has found. WinHelp had all of the topics in a continguous Word file so global find and replace functions were very easy to automate. However, in HTML Help topics exist as discrete files and RoboHelp X5 does not appear to have a tool that can search through all of the files and do a find and replace function. The same problem existed in RoboHelp 2002; I had hopes that X5 had a solution for global search/replace functions!

If you want to automate the search of your entire project for a specific word or phrase, RoboHTML does not offer any easy solution... or rather any solution that I found. I still open each topic and use the Find/Replace function in the Edit menu (or Ctrl F).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 23, 2007 Jan 23, 2007

Copy link to clipboard

Copied

Eileen,

Thanks for your reply. Unfortunately, we have about 2000 topics in our project, so opening each one is not an option.
It's not so much replace that I need, simply being able to find across all the topics is the key thing, then being able to double click the results and open them in the RoboHelp editor.

I still find it hard to believe this feature is lacking!!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 23, 2007 Jan 23, 2007

Copy link to clipboard

Copied

Eileen

RH does have a feature that will find and replace across all topics. You will find the Multi file find and replace tool in the Tools tab. That said it may not always work as expected. I use a low cost application called FAR from http://www.helpware.net. Be aware though that all these tools search the code, rather than just the text you see in the WYSIWYG editor.

IonicRobin

The same tool will give you the list you want and there is an Edit button to edit the highlighted topic. The dumb thing is it opens in your PC's system defined HTML editor rather than RH so you would need to define RH as the system editor.

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 12, 2007 Sep 12, 2007

Copy link to clipboard

Copied

I was unable to find a phrase I was looking for in my RoboHelp X5 project with RoboHelp's Multi-File Find and Replace tool. I was searching for "Change button" which I knew was there, because I could see it in the WYSIWYG editor. I was thinking that it might be an issue with Microsoft Visual Studio source control since I use that tool for version control. So I made certain that all my files were checked in, then searched again, and Multi-File Find and Replace still couldn't find the phrase. I downloaded FAR ( http://helpware.net/FAR/index.html) as suggested on this forum, but that tool couldn't find the phrase either. I tried searching the output (FlashHelp) but there's no Boolean search capability like there is in WebHelp, so a search for "Change button" resulted in a number of topics that was the equivalent of an "OR" search. I even searched through the RoboHelp files in Windows Explorer and still couldn't find what I knew was there.

Finally, I discovered why. I highlighted "Change button" in the topic and looked at the html code in the True Code editor and found: <span style="font-weight: bold;">Change</span> button.<span style="font-weight: bold;">. Evidently Multi-File Find and Replace is not searching the WYSIWYG. (On the Multi-File Find and Replace tool's dialog I even made sure to use *.* in the Named field to search all files, not just html).

Does anyone have a solution to this? Shouldn't the Multi-File Find and Replace tool be searching the WYSIWYG?

Thanks!

Gina

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 12, 2007 Sep 12, 2007

Copy link to clipboard

Copied

No it is intended to look at code level and long may that last. There are many things that need to be done at that level. For example changing something in every topic where you need to code as well or finding the text and the code so that you can then just change to formatting around it.

Tip for a similar problem another time. Set up the search to Start with Change and End with Button.



Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 13, 2007 Sep 13, 2007

Copy link to clipboard

Copied

LATEST
Robin/Gina,

If you just want to search and replace text within an HTM/HTML file you caan achieve this by using Word and the macro below. You will need to change the "Path to use" line and change the myfile line to htm/html. Remember to backup before trying.

Public Sub BatchReplaceAll()

Dim FirstLoop As Boolean
Dim myFile As String
Dim PathToUse As String
Dim myDoc As Document
Dim Response As Long

PathToUse = "C:\test"

'Error handler to handle error generated whenever
'the FindReplace dialog is closed

On Error Resume Next

'Close all open documents before beginning

Documents.Close SaveChanges:=wdPromptToSaveChanges

'Boolean expression to test whether first loop
'This is used so that the FindReplace dialog will
'only be displayed for the first document

FirstLoop = True

'Set the directory and type of file to batch process

myFile = Dir$(PathToUse & "*.doc")

While myFile <> ""

'Open document
Set myDoc = Documents.Open(PathToUse & myFile)
'If ActiveWindow.View.SplitSpecial = wdPaneNone Then
' ActiveWindow.ActivePane.View.Type = wdNormalView
' Else
' ActiveWindow.View.Type = wdNormalView
' End If
If FirstLoop Then

'Display dialog on first loop only

Dialogs(wdDialogEditReplace).Show

FirstLoop = False

Response = MsgBox("Do you want to process " & _
"the rest of the files in this folder", vbYesNo)
If Response = vbNo Then Exit Sub

Else

'On subsequent loops (files), a ReplaceAll is
'executed with the original settings and without
'displaying the dialog box again

With Dialogs(wdDialogEditReplace)
.ReplaceAll = 1
.Execute
End With

End If
ActiveWindow.View.Type = wdPrintView
'Close the modified document after saving changes

myDoc.Close SaveChanges:=wdSaveChanges

'Next file in folder

myFile = Dir$()

Wend

End Sub

Hope it helps,

Brian

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp