homepage Welcome to WebmasterWorld Guest from 54.161.202.234
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
dreamweaver..clean up html..
can it be done site wide?
soapystar




msg:941053
 8:42 pm on Jan 8, 2003 (gmt 0)

does anyone know....can the dreamweaver command tool..CLEAN UP HTML....can it be used site wide rather than having to load individual pages?...and if so..how?..cheers!

 

hakre




msg:941054
 2:36 am on Jan 9, 2003 (gmt 0)

no you can't use this command on the site, only on the opened page. sorry.

Syren_Song




msg:941055
 2:43 am on Jan 9, 2003 (gmt 0)

If you've got a specific problem that you know occurs on each page with the exact same coding that needs correcting, you can always use the Find-and-Replace feature.

Just make sure you backup your entire site first. The corrections made using Find-and-Replace can't be changed easily or quickly.

Good luck!

hakre




msg:941056
 2:47 am on Jan 9, 2003 (gmt 0)

Syren, that's a good tip. There are multi search and replace tools available, too. Some of them also provide regular expression you can use not only to match ever the same part.

And these tools have got undo and redo. I think that's better then the build'in one in dreamweaver.

lorax




msg:941057
 2:53 am on Jan 9, 2003 (gmt 0)

Just make sure you backup your entire site first. The corrections made using Find-and-Replace can't be changed easily or quickly.

I will be very happy if/when they 'fix' this. I've been burned by it a couple of times and I concur - make a copy before you try it.

soapystar




msg:941058
 5:45 am on Jan 9, 2003 (gmt 0)

but if the code you want to fix is spread over more than one line..can it stil be used...the frontpage find and replace only works on single lines....is dreamweaver different?

hakre




msg:941059
 6:04 am on Jan 9, 2003 (gmt 0)

yup, dreamweaver is different. you can add multiple lines, tell where to search (the text, the source etc.). it's quite useable. a little slow sometimes.

soapystar




msg:941060
 6:16 am on Jan 9, 2003 (gmt 0)

wow....why didnt someone tell me this earlier?..ok...a quick backup and then im gonna indulge is some site repair!..Thanks!

hakre




msg:941061
 4:07 pm on Jan 9, 2003 (gmt 0)

soapystar i'm talking about version 3. don't know what mx does, but i think the same or better. maybe even mx has a routine to do on multiple files, yes i think so.

Syren_Song




msg:941062
 4:13 pm on Jan 9, 2003 (gmt 0)

DW4 works on multiple lines. I don't see why they would have changed it for MX. It's a very powerful function and it can be a big help in cleaning up messes and making large changes to your site - as long as you back up FIRST!

I really can't stress the backup enough. I know too many people that have lost a great deal of work and created lots or problems and extra work for themselves because they didn't backup their site before making sitewide changes using the find-and-replace function!

Syren_Song




msg:941063
 4:17 pm on Jan 9, 2003 (gmt 0)

One more thing. If your pages are all hand-coded, there can be some unpredictable results. Not all the pages may be changed due to minor typing differences. An extra space can keep the page from being corrected, and one extra <br> can mess up the way a table shows its contents.

You may want to try changing one folder at a time, just so you can keep an eye out for problems that you don't know exist yet.

soapystar




msg:941064
 4:35 pm on Jan 9, 2003 (gmt 0)

worked very nicley with mx!

hakre




msg:941065
 4:44 pm on Jan 9, 2003 (gmt 0)

does anyone knows a tool that normalizes html source? which makes double-spaces to simple spaces, quotes all attribute values etc.?

korkus2000




msg:941066
 4:46 pm on Jan 9, 2003 (gmt 0)

Have you tried HTML tidy?

hakre




msg:941067
 5:18 pm on Jan 9, 2003 (gmt 0)

i've heard of it but never tested. i'll check it out. thanks.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved