Emacs matching tags highlighting

2020-03-12 03:05发布

问题:

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!

回答1:

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