Emacs C/C++ 注释填充:希望注释中的段落不被合并
Emacs C/C++ comment filling: want paragraphs in comment to not be merged
Input
// 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.
我想要的只是将其扩展到额外的缩进,通过填充前缀。
您可以通过各种正则表达式变量来控制它。 你可能可以让它做你想做的事,但它有点"艺术"。
相关文章:
- 如果我注释掉换行符,为什么'string'会成为一个不合格的变量
- 注释一行使代码工作,而没有它,代码不起作用
- Sk段落不塑造或呈现文本
- C(嵌入式):注释 FreeRTOS 的 RootTask 时代码大小不会缩小
- 如何确保 C/C++ 代码中不会缺少 doxygen 风格的文档注释?
- 删除被注释掉的代码,而不是实际的赞美
- Cpp检查规则不显示 #define,注释
- CLion 行注释的不一致自动缩进
- 编译指示注释(库)不起作用
- 'WinMain'的注释不一致
- 为什么在 c++ 中不能将成对的注释放在字符串中?
- 在C++代码中使用C风格的注释是不是一种糟糕的做法
- 为什么当注释"cout"时此代码不起作用?
- Emacs C/C++ 注释填充:希望注释中的段落不被合并
- 代码分析不理解_In_opt_参数注释?
- 注释函数的内容,但保持对函数的调用不变.编译器是否弄清楚不编译函数
- 通过添加一些特殊字符,使 /* 的含义用于取消引用和划分不用于注释
- 为什么要注释参数名称而不是保持原样
- 在一个简单的c++ 11四线程程序中,如果我注释标准输出打印行,我的两个消费者线程就不会返回
- 为什么在c++中注释多行注释不一致?