在编辑非 WYSIWYG(LaTeX、HTML 等)散文时,您可能希望在句子末尾添加换行符。这有几个优点:
- 更容易重新排列句子。
- 更容易注释掉句子。
- 更容易发现连续/过长的句子。
- 更容易评论句子。
例如:
% The following isn't strictly true; maybe excise or comment out for now:
After all, people who use Word or other WYSIWYG editors are aiding and
abetting terrorists.
最重要的优势可能是它使版本控制下的协作编辑变得更加容易。否则,您最终会遇到冲突,它只会告诉您“这个巨大段落的以下两个版本存在冲突”。
但是在句子末尾保留换行符说起来容易做起来难......
As you edit the prose
it will get all chopped up, like this.
Normally you'd do a "reformat paragraph"
to clean it up, but then
you lose the newlines at the ends of your sentences!
以下问题询问如何在 emacs 中解决此问题:
我想知道人们如何在其他编辑器中处理这个问题,包括 vim、TeXShop、TextMate 以及您认为在这里收集的任何其他工具。也欢迎有关软包装与硬包装的建议。