在记事本中显示不匹配的html标签 [英] Show unmatched html tags in Notepad++

查看:44
本文介绍了在记事本中显示不匹配的html标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Notepad ++中突出显示不匹配的HTML标签?

例如,如果我有以下HTML ...

 < HTML>< ;!-服务器:<%=(java.net.InetAddress.getLocalHost()).getHostName()%>->< HEAD>< TITLE>生命统计</TITLE>< META HTTP-EQUIV ="Pragma" CONTENT ="no-cache">< SCRIPT SRC ="vital_stats.js" TYPE ="text/javascript"></SCRIPT>< LINK REL ="STYLESHEET" HREF ="../main.css"></HTML> 

我希望以某种方式突出显示< HEAD> 标记,以表明它没有相应的</HEAD> 标记./p>

我还希望看到任何没有相应的开始标签的结束标签.

编辑

我已经知道Notepad ++单击标签以查看其对应标签的功能.我想突出显示ENTIRE文档中不匹配的所有标签.即使我可以运行某种实用程序/插件,该实用程序/插件也会为我列出任何不匹配标签的行号和名称会很有帮助.

解决方案

我在

I would like the <HEAD> tag to be highlighted in some way to indicate that it doesn't have a corresponding </HEAD> tag.

I would also like to see any closing tags highlighted that don't have a corresponding opening tag.

EDIT

I already know about Notepad++'s feature of clicking a tag to see it's corresponding tag. I'm looking to highlight ANY tags that aren't matched in the ENTIRE document. Even if there's some sort of utility/plugin that I could run that would list for me the line number and name of any unmatched tags would be helpful.

解决方案

I've put in a request for someone to develop a plugin to do this in Notepad++ at https://sourceforge.net/projects/notepad-plus/forums/forum/331753/topic/4936812

Until that happens, it appears that this cannot be done in Notepad++.

这篇关于在记事本中显示不匹配的html标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆