Valloric / MatchTagAlways

A Vim plugin that always highlights the enclosing html/xml tags
http://valloric.github.com/MatchTagAlways/
GNU General Public License v3.0
541 stars 24 forks source link

Matching tags backwards #13

Closed YaroSpace closed 10 years ago

YaroSpace commented 10 years ago

I noticed that only the closing tags are matched. Is there a way to match the opening tags too? So, when the cursor is on a closing tag, it would highlight the opened tag that it is closing.

Valloric commented 10 years ago

Opening tags are highlighted as well.

gif

marceldev89 commented 8 years ago

This doesn't seem to work properly when a HTML tag contains some PHP code. Forward lookup is working properly but backward lookup isn't. Using <?= or <?php echo doesn't make a difference.

<td class="tright">
    <span class="amount color lead">
        <strong>&euro; <?= number_format($sum, 2, ',', ''); ?></strong>
    </span>
</td>
sandrodz commented 7 years ago

confirm that it doesn't work backwards when there is php inside. this should be reopened.