假设我正在编辑一个非常冗长且混乱的HTML文件.将光标放在打开的标签上,有没有办法跳转到结束标签?
Tör*_*bor 54
如果您正在使用sgml-mode或其衍生物(例如html-mode):
sgml-skip-tag-forward 是``sgml-mode.el'中的交互式编译Lisp函数.
它必然会
C-c C-f
要么
C-c <right>
并绑定到菜单栏:
<menu-bar> <sgml> <sgml-skip-tag-forward>`
Run Code Online (Sandbox Code Playgroud)
来自emacslisp:
(sgml-skip-tag-forward arg)
Run Code Online (Sandbox Code Playgroud)
如果存在,请跳至标记结尾或匹配结束标记.使用前缀参数arg,重复此arg次.如果在结束标记之后返回t.
Der*_*ger 24
假设你正在使用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.
Run Code Online (Sandbox Code Playgroud)