Find and Replace sections of code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have recently revised parts of my website and I need to add things like my
adsense code to every page, plus a couple of banners etc. However, with some
50+ pages, this is a mission.
Find & replace only works if you have one line of text at a time, whereas
typically the line of code may be split over two or three lines.

How can I find and replace - or better yet; find a marker and insert a bunch
of text throughout my site. I do use includes here and there for menus and
page footers, but I'm not sure how to replace two or three lines of code at a
time.

Thanks
Michael

www.simplebiz4u.co.uk
 
If using FP2003, you can do this, however prior version, not possible, so you would have to manually
update it page. 50 + pages is really not that bad, I have do it with 500 pages, because I still use
FP2000.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Thanks for that.

Michael

Thomas A. Rowe said:
If using FP2003, you can do this, however prior version, not possible, so you would have to manually
update it page. 50 + pages is really not that bad, I have do it with 500 pages, because I still use
FP2000.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Hi Thomas,
Any idea if I could use an alternative external text editor that can process
such changes to my frontpage html files?

If I do edit my pages like that, will I be causing problems later on with
the frontpage extensions, when I come to publishing my site?

I have identified a few text editors that may be able to do what I need, (in
the short term) until I can buy fp2003.

Michael
 
When you use any external app to modify files within a FP web, the hidden index files are not
updated, which will lead to problems, since FP will not know that changes have been made. Sometimes
you can run Tools | Recalculate Hyperlinks and that will update the hidden indexes, however it
doesn't always solve problems when you changes content outside of FP.

In the past I have used version 3 of HomeSite to make multi-line global changes by copying all of
the pages to be changed to a folder outside of my web, then making the changes, then with the web
open in FP, re-import the pages back into the web, this way FP will update the hidden index files,
but I did run into issues with pages that had Included content. So be warned if you use Themes,
Shared Borders, FP Includes, navigation that do this may cause problems with your site structure.

BTW: From the time that you originally posted your first message about this, to now, you really
could have updated all of your pages.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Thanks Thomas. You are right. I could have probably done them all - but I'm
still dithering about creating a mySQL database for these pages, in which
case my efforts to update all of them would be wasted.

Thanks again.
 
Back
Top