homepage Welcome to WebmasterWorld Guest from
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

Redundant tags in Dreamweaver

 2:31 pm on Nov 20, 2000 (gmt 0)

Is there any way to avoid the font tag redundancies in Dreamweaver 2 - it's a LOT to fix by hand.




 5:10 pm on Nov 20, 2000 (gmt 0)

Using Commands>Clean Up HTML Dreamweaver will combine multiple nested tags ie

<font size="1"><font color="red">text</font></font> becomes
<font size="1" color="red">text</font>

and empty tags are removed. The command does other cleanup too. It isn't perfect but reduces the hand editing dramatically.


 9:47 pm on Nov 20, 2000 (gmt 0)

maybe a daft question, but why would you need to do this ?


 9:56 pm on Nov 20, 2000 (gmt 0)

There's duplicate tags for even one word. One for font face, another for font size, sometimes another for font color. Very sloppy, heavy code, and if one is removed, it's hard to keep track and make sure the closing tags are removed, too.

For each bit of text there can be two or three sets of font tags, which adds up with bolding and all.

Example: one set for color surrounding contact webmaster: another set for color surrounding the email address. Another two sets for font size.

Dave, I just tried it for cleaning up redundant tags, and they're still there. Four sets of font tags where there should be one. Yuk!

Is this remedied in Dreamweaver 3 or 4? It would be worth the upgrade just for this.

Edited by: Marcia


 9:59 pm on Nov 20, 2000 (gmt 0)

I use the find and replace fuction, replacing with nothing. You can do this sitewide or page by page.


 12:50 am on Nov 21, 2000 (gmt 0)

Marcia - I'm using 3.01 and the code is nice and clean...


 4:29 am on Nov 21, 2000 (gmt 0)

Marcia - More on Dreamweaver 3.01.
Commands>Clean Up HTML has an option w/this version to "Combine nested font tags when possible" and it works reliably as described earlier.

I did some testing and found that the Clean Up command deletes <font something></font> but doesn't delete <font something> </font> for example. DW does have a habit of leaving the second example behind more often then I'd like when editing. The clean up is limited but still useful. I've been using DW for so long I don't notice many of the quirks anymore I guess.


 1:13 am on Nov 22, 2000 (gmt 0)

Dave, I've had Dreamweaver for quite a while, but haven't used it much except for playing around with layouts, especially when making graphics. It's a great aid for "creativity." I've pretty much stuck with a text or HTML editor so I'm used to having full control over the code.

I've never worked with "sites" only pages - never really gotten into the program much. I've started using DW a bit more recently, and it is sooo convenient, I'm getting a little spoiled.

This might be a good time to fire up the old P133 with the 33.6 winmodem again and download the latest issue of Netscape 3 for testing - and start using external stylesheets. I almost always use same font face and size, so I could re-use it, and then use find and replace if there was anything different.

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