How to modify the HTML codes of multiple webpages?

I have a website which contains of at least 150 pages. I need to change and modify an HTML code (part of it) for all webpages. I m trying to prevent opening every page and modifying the code. Is there anyways or any program that can basically search and replace a code statement in multiple pages.? Thanks,

Public Comments

  1. You could use css, but you will have to reference it on all pages
  2. you would have to open all pages in an editor to make the change. Most likely you could have avoided this if you used CSS.
  3. There are text editors that will let you do a search and replace on multiple files in a subdirectory. I personally use UltraEdit32, on occasion, to do just what you're looking to do. Works very quickly and even shows you how many times it replaced the code in how many files.
  4. This is where templates are a god send. You might want to look into using templates that way, you only edit the template and it applies the edits throughout all your pages. Using server side scripting (like php, asp, cfm or cgi) you can use a templating system easily. for now, i suggest looking for a text editor that can do a "find and Replace" to apply edits across all pages that contain the same coding or text. Dreamweaver has this built in.
Powered by Yahoo! Answers