Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

3 Answers

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 asp.net developers will love you for it. ;) –  techie007 Mar 20 '11 at 16:35
add comment
  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
add comment

Maybe you want to check Htmltransl (freeware):

Htmltransl is an applications that takes as input various html files, zipped for convenience in input.zip, 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.