ThePhi
ThePhi

Reputation: 2611

XHTML: how to highlight matching tag?

I'd like highlighting of the matching HTML tag when the cursor is on the specific tag.

I'm looking for something like highlight matching parentheses in options menu.

I've checked the question How can I highlight unmatched HTML tags in Emacs? which is close to what I search but I want highlight of all the matching tags (where the cursor is), not only the errors.

Upvotes: 3

Views: 1623

Answers (2)

mkub1ak
mkub1ak

Reputation: 44

web-mode provides this. You can enable with web-mode-toggle-current-element-highlight

You can add (setq web-mode-enable-current-element-highlight t) into your web-mode-hook to make this behavior persistent.

Upvotes: 2

Jordon Biondo
Jordon Biondo

Reputation: 4029

web-mode provides this. You can enable with web-mode-toggle-current-element-highlight

Upvotes: 7

Related Questions