Is there an easy way to find broken HTML code in Dreamweaver?
有没有一种简单的方法可以在Dreamweaver中找到破损的HTML代码?
I've got an issue and I keep loosing count. Is there a Dreamweaver trick to this?
我有个问题,我一直在数数。有一个Dreamweaver的技巧吗?
1 个解决方案
#1
6
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.
突出显示无效的代码将显示所有未关闭的HTML标记为黄色,语法错误警报将通知您脚本有问题,尽管它不会告诉您确切的位置。
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.
编辑:语法错误警报确实给了一个小的迹象,问题是通过展示哪一行有一个问题,但它通常只显示有问题的最后一行脚本通常是因为一个函数没有正常关闭的地方进一步上升。
#1
6
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.
突出显示无效的代码将显示所有未关闭的HTML标记为黄色,语法错误警报将通知您脚本有问题,尽管它不会告诉您确切的位置。
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.
编辑:语法错误警报确实给了一个小的迹象,问题是通过展示哪一行有一个问题,但它通常只显示有问题的最后一行脚本通常是因为一个函数没有正常关闭的地方进一步上升。