SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: HTML Tidy on an entire web site?
-
Sep 12, 2008, 13:27 #1
- Join Date
- Feb 2008
- Posts
- 66
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
HTML Tidy on an entire web site?
Hello,
Is it possible to use HTML Tidy (http://tidy.sourceforge.net/) on an entire web site that is located on my desktop? We're looking at tidying 1000s of pages, some which date back to 1999.
I want to be able to scan an entire folder, and have HTML Tidy clean all .html, .htm and .inc files in all folders and sub folders within (some are 50 levels deep).
Thanks - and I look forward to hearing from you.
-
Sep 12, 2008, 14:55 #2
- Join Date
- Aug 2006
- Location
- Victoria, B.C. Canada
- Posts
- 592
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yes, with the PHP tidy extension. Tidy might be available as extensions to other languages, too.
You don't mention what kind of a desktop you are using. Windows, MacIntosh, Linux? In each case the procedure will be different, but the general answer is "yes".Ed Seedhouse
-
Sep 12, 2008, 15:35 #3
- Join Date
- Feb 2008
- Posts
- 66
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
I am using Windows XP.
Can you (or anyone else) give me some specifics about what my next step would be to carry this forward?
Thanks for your help.
-
Sep 12, 2008, 17:18 #4
- Join Date
- Sep 2005
- Location
- Sydney, NSW, Australia
- Posts
- 16,875
- Mentioned
- 25 Post(s)
- Tagged
- 1 Thread(s)
Just run tidy in batch mode telling it what folder to process. I can't remember the exact details option for doing it as it is about 15 months ago that I ran it that way. You should find it easily enough in the help.
Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
Bookmarks