Click to See Complete Forum and Search --> : Open tag?


Phill Pafford
11-12-2006, 09:56 AM
Hi all,

Does Dreamweaver have an option to see if a tag is open or not?

example:

-This is correct, it closes all the tages.


<table>
<tr>
<td>&nbsp</td>
</tr>
</table>


this is NOT correct, there is one tag open


<table>
<tr>
<td>&nbsp</td>

</table>


does Dreamweaver have some sort of way to toggle between the open and closed tags to see if they are closed?

I know the VI editor does

ryanbutler
11-13-2006, 10:25 AM
Not that I know about, however, when you save the file, it will give you an a yellow question mark in the property inspector with a message indicating a tag is either open and not closed.

Phill Pafford
11-13-2006, 11:41 AM
Thanks for the tip, I will see if that works

ryanbutler
11-13-2006, 12:12 PM
You could always do a search for open or closed tags in Dreamweaver. The built in search and replace has saved me huge amounts of time in the past for large sites.

The only way I know to do it is write a script with a regular expression and then design a form to check for those instances, but I would save that for a rainy day.

KDLA
11-13-2006, 04:29 PM
View > Code View Options > Highlight Invalid HTML

KDLA