gpt4 book ai didi

xml - emacs nxml-mode 中的折叠标签

转载 作者:数据小太阳 更新时间:2023-10-29 01:38:54 28 4
gpt4 key购买 nike

互联网上充满了在 Glorious Emacs 编辑器中折叠代码的古老教义。其中包括 folding.el、outline-minor-mode 和 fold-dwim.el。唉,我可怜的不开明的头脑不会写出必要的 elisp 配置。

请帮助 nxml 模式下的 mortal fold 标签,最好使用 TAB。如果相关,我使用 viper 和 vimpulse。

最佳答案

它在 nxml-mode 中称为大纲,在 nxml-mode 文档的第 5 节中。哪个开始...

5 Outlining


nXML mode allows you to display all orpart of a buffer as an outline, in asimilar way to Emacs' outline mode.An outline in nXML mode is based onrecognizing two kinds of element:sections and headings. There is oneheading for every section and onesection for every heading. A sectioncontains its heading as or within itsfirst child element. A section alsocontains its subordinate sections (itssubsections). The text content of asection consists of anything in asection that is neither a subsectionnor a heading.

https://www.gnu.org/software/emacs/manual/html_mono/nxml-mode.html#Outlining

关于xml - emacs nxml-mode 中的折叠标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6452167/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com