[英]Sublime text 3 plugin Bracket highlighter not working correctly
When i paste code inside a document, it's stops highlighting brackets of all document and shows question mark near all div elements.. 当我将代码粘贴到文档中时,它将停止突出显示所有文档的括号,并在所有div元素附近显示问号。
How can i solve this problem? 我怎么解决这个问题?
Before, it's highlighting open and closed tag 以前,它突出显示打开和关闭标签
After pasting code inside , its showing question mark for all document.. 将代码粘贴到内部后,它会为所有文件显示问号。
The reason you're seeing this issue is because you have improperly nested tags in the <header>
section. 您看到此问题的原因是因为
<header>
部分中的标签嵌套不正确。 Your code is as follows: 您的代码如下:
<a href="#"><h1 class="title">Document</a><a href="#!/about-us" id="show-about-btn">▼</a></h1>
<!--open a open h1 close a|open a close a|close h1-->
or, in a condensed version: 或者,在精简版本中:
<a><h1></a><a></a></h1>
You can fix this by switching the first <a>
and the <h1>
: 您可以通过切换第一个
<a>
和<h1>
来解决此问题:
<h1 class="title">
<a href="#">Document</a>
<a href="#!/about-us" id="show-about-btn">▼</a>
</h1>
Everything is now properly nested, and the bracket highlighting will work as expected: 现在,所有内容均已正确嵌套,并且括号突出显示将按预期工作:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.