简体   繁体   中英

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..

崇高文字3括号突出显示

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. 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> :

<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:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM