Emacs matching tags highlighting
Asked Answered
S

1

11

When Paren Match Highlighting (in the Options menu) is enabled, it nicely highlights matched parentheses. Is there something like this but for XML tags? For example, if I had:

<para> lksjdflksdjfksdjf </para>

it would highlight both tags if my point was anywhere inside one of the tags (even including the less-than and greater-than signs).

Thanks for help!

Steere answered 16/10, 2011 at 12:45 Comment(0)
I
12

Mike Spindel has written a minor mode, hl-tags-mode, which provides this feature.

Iiette answered 16/10, 2011 at 13:19 Comment(2)
One more question. Any idea how to switch the color of highlighting? Say from the current pink to yellow? Thanks!Steere
Sure, try this: (set-face-background 'show-paren-match-face "Yellow")Iiette

© 2022 - 2024 — McMap. All rights reserved.