gpt4 book ai didi

c++ - Emacs C/C++ 注释填充 : want paragraphs in comment to not be merged

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:23:57 24 4
gpt4 key购买 nike

输入

// This is an example, a test, of what I want emacs filling, in this case of C++ comments, to do.
// This is a paragraph that needs to get filled.
// But I want to start a new paragraph, within the same comment, that is indented,
// but not joined to the previous by filling.
// And another.

这是我使用当前设置得到的结果。我不想要这个。它连接段落。

// This is an example, a test, of what I want emacs filling,
// in this case of C++ commentrs to do. This is a paragraph
// that needs to get filled. But I want to start a new
// paagraph, within the same comment, that is indented, but
// not joined the the previous by filling. And another.

这是我想要的

// This is an example, a test, of what I want emacs filling,
// in this case of C++ comments to do. This is a paragraph
// that needs to get filled.
// But I want to start a new paragraph, within the same
// comment, that is indented, but not joined to the previous
// by filling.
// And another.

使用自适应填充。

Gnu emacs 24.1.1


有人问“emacs 如何将您的非标准段落标记与对空格有点草率的用户区分开来?新段落的标准标记是空行。”

有一些 emacs 模式可以用标准的英文缩进正确地填充段落,其中新段落的第一行比附近的段落主体行有更多的缩进。

This is an example, a test, of what I want emacs filling,
in this case of non-comments to do. This is a paragraph
that needs to get filled.
But I want to start a new paragraph, within the same
comment, that is indented, but not joined to the previous
by filling.
And another.

我只想将其扩展为额外的缩进,超过填充前缀。

最佳答案

您可以通过各种 regex variables 来控制它.您可能可以让它做您想做的事,但这有点像一门“艺术”。

关于c++ - Emacs C/C++ 注释填充 : want paragraphs in comment to not be merged,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12754384/

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