HTML replace: how to replace more than one string

Word-2-CHM Converter

HTML replace: how to replace more than one string


jokrug 08-10-2009, 1:48 AM
Hello!
I would like to replace different strings by different other strings using the "HTML replace" add in, but I have only one field to enter a search string and another field to enter the replace string.
I am using "Word-2-chm 2009 Pro, 2009.2.718.2187.

Re: HTML replace: how to replace more than one string


David 08-10-2009, 2:33 AM
1. Please fill in the replacement in "HTML Replace" addin and save the .word2chm project file.
2. Then open the .word2chm with any text editor, clone the HtmlReplace.Addin and modify it to fit your requirement.
    <Addin __File="HtmlReplace.Addin" __Path="Addins\HtmlReplace\" UseRegex="True" __Enabled="True" FindHTML="a" ReplaceHTML="b"/>
    <Addin __File="HtmlReplace.Addin" __Path="Addins\HtmlReplace\" UseRegex="True" __Enabled="True" FindHTML="c" ReplaceHTML="d"/>

3. Loop 2 as you need.
4. Save the .word2chm and re-open it with Word-2-CHM.
5. Perform convert action, and enjoy it :)

Re: HTML replace: how to replace more than one string


jokrug 08-10-2009, 4:17 AM
Thank's for the super fast answer.
It worked perfekt.

Good software and excellent support!
Congratulations.

Powered by Community Server, by Telligent Systems