Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there some way to modify multiple HTML files in multiple folders?

I want to apply a new HTML design template over an old HTML website. The website is quite big, and doing this manually will take me quite a long time.

Basically I want to keep title / meta tags / and <body> elements as those are, and replace the rest of the HTML elements.

I know about Notepad++ but I don't know how to set it up to give me the right output.

share|improve this question
Implement external Style Sheets - then you can update the style sheet and all pages will reflect the change. – Shevek Jul 31 '13 at 14:15

I'm not sure if you can do this with Notepad++, but there are other tools you can use to do it. Microsoft's Expression Web (in the Expression Studio suite) will let attach a DWT (Dynamic Web Template) to as many files as you want. Every time you change the DWT all files it is attached to will automatically be updated, then the content that is unique to each page can be edited in each page individually (called an editable region on the DWT). Dreamweaver has a similar feature, but I have not used it.

If you are a student you can get Expression Studio 4 free from dreamspark, otherwise you can buy it here.

share|improve this answer
You may want to consider using Master Pages in Expression Web instead of the DWT (unless you need old Dreamweaver compatibility). Your developers will love you for it. ;) – Ƭᴇcʜιᴇ007 Mar 20 '11 at 16:35
  1. Open all the files in Notepad++;
  2. Then go to Search;
  3. Find in Files;
  4. Find what part of the code you wish to change.
  5. Next go to Search;
  6. Replace;
  7. Add what the replacement code should be;
  8. Then click on "Replace in all opened documents".
share|improve this answer

Maybe you want to check Htmltransl (freeware):

Htmltransl is an applications that takes as input various html files, zipped for convenience in, translates all the files according to what specified in dictionary.txt (matching patterns are substituted) and zips the translated html files

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .