2012-10-05 65 views
4

輸入Emacs的C/C++的評論填充:想在評論段落不合並

// 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. 

我想要的只是擴展到額外的縮進,通過填充前綴。

+0

你能告訴我們你在做加盟行嗎? – Alan

+0

@Alan:我不明白的問題:或者說,我想我明白這個問題,但它是無關緊要的。你似乎在問我在按什麼電子模式鍵。忘記這一點:我在詢問如何重新格式化一段ascii文本。 Libe libe等結尾處的換行符 –

+0

@KrazyGlew在三年前已被問及,您是否找到答案? –

回答

0

您可以通過各種regex variables進行控制。你也許可以得到它做你想要的,但它是一個有點「藝術」。