Modify multiple HTML files in multiple folders automatically

1

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.

SolarAngellis

Posted 2011-03-20T07:56:29.923

Reputation: 11

Implement external Style Sheets - then you can update the style sheet and all pages will reflect the change. – Shevek – 2013-07-31T14:15:13.557

Answers

1

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.

ubiquibacon

Posted 2011-03-20T07:56:29.923

Reputation: 7 287

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. ;) – Ƭᴇcʜιᴇ007 – 2011-03-20T16:35:27.767

1

  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".

Altiona

Posted 2011-03-20T07:56:29.923

Reputation: 11

0

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

user269595

Posted 2011-03-20T07:56:29.923

Reputation: 1