Is there an easy way to find broken HTML code in Dreamweaver?

Emily Magnuson picture Emily Magnuson · Jan 23, 2013 · Viewed 9.4k times · Source

Is there an easy way to find broken HTML code in Dreamweaver?

I've got an issue and I keep loosing count. Is there a Dreamweaver trick to this?

Answer

Dom picture Dom · Jan 23, 2013

Try turning on 'Highlight Invalid Code' and 'Syntax Error Alerts In Info Bar' both about halfway down the toolbar on the left adjacent to the coding/design window.

Highlight Invalid Code will show all unclosed HTML tags in yellow and Syntax Error Alerts will notify you that there is a problem with your scripts, although it will not tell you exactly where.

EDIT: Syntax Error Alerts does give a small indication of where the problem is by showing which line has a problem BUT it often just shows that there is a problem with the last line of the script usually due to the fact that a function hasn't been closed properly somewhere further up.