在Emacs中编辑HTML时,如何跳转到匹配的标签? [英] How do I jump to the matching tag, when editing HTML in Emacs?
本文介绍了在Emacs中编辑HTML时,如何跳转到匹配的标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
假设你使用的是nxml -mode:
CMn运行命令nxml-forward-element,它是一个交互式
编译的Lisp函数, nxml-mode.el。
它绑定到C-M-n。
(nxml-forward-element& optional ARG)
向前移动一个元素。
使用ARG,可以做很多次。
负ARG意味着向后移动。
Suppose I'm editing a very long and messy HTML file. With my cursor at an open tag, is there a way to jump to its closing tag?
解决方案
Assuming you're using nxml-mode:
C-M-n runs the command nxml-forward-element, which is an interactive
compiled Lisp function in `nxml-mode.el'.
It is bound to C-M-n.
(nxml-forward-element &optional ARG)
Move forward over one element.
With ARG, do it that many times.
Negative ARG means move backward.
这篇关于在Emacs中编辑HTML时,如何跳转到匹配的标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文