我经常把子弹列表放在“//”风格的评论中,例如:
// * Here’s a very long line containing a bullet and I want
// it to fill like this. Note the leading space here
//
// * Here’s the next bullet in that same bullet list.
但是,我无法通过任何明显的newcomment.el变量自定义来M-q
填充列表。它总是这样:
// * Here’s a very long line containing a bullet and I want
// it to fill like this.
似乎无法使用regexp轻松完成此工作(将comment-use-syntax
设置为nil
)。我需要使用语法表吗?
答案 0 :(得分:1)
注释中的段落仍然有效,您只需要用空注释行分隔它们:
// * Here’s a very long line containing a bullet and I want
// it to fill like this.
//
// * Here’s the next bullet in that same bullet list.
请注意,第2行和以下行不缩进。