简体   繁体   English

像记事本++一样突出显示emacs中的打开和关闭标签xhtml

[英]Highlight opening and closing tags xhtml in emacs just like notepad++

I really find convenient with the feature of highlighting opening and closing tag in XHTML document in Notepad++. 我真的发现在Notepad ++中突出显示XHTML文档中的打开和关闭标签的功能很方便。 Is there any equivalent feature in Emacs? Emacs中有任何等效功能吗? I am using Emacs 24.3.1 我正在使用Emacs 24.3.1

在此处输入图片说明

I think you want the editor to show you the closing tag when you cursor over its opening mate and vice versa. 我认为您希望编辑器在光标悬停在其开头伴侣上时向您显示结束标签,反之亦然。 One way to get that is to install smartparens and execute Mx show-smartparens-mode . 一种获取方法是安装smartparens并执行Mx show-smartparens-mode

Try this package. 试试这个包。 It does not do exactly what you want (I think, I never used notepad++), but maybe it is good enough for you. 它不能完全满足您的要求(我想,我从未使用过notepad ++),但也许对您来说已经足够了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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