如何让Emacs fill段落处理我的C#模块中的内联XML代码文档?
这个问题与C#类似,但对C# 我有这样的评论:如何让Emacs fill段落处理我的C#模块中的内联XML代码文档?,c#,.net,emacs,xml-documentation,C#,.net,Emacs,Xml Documentation,这个问题与C#类似,但对C# 我有这样的评论: /// <summary> /// Of these Colonies, and ought to fall themselves by sending a /// constant state of THE unanimous /// Declaration OF Nature and donations are legally 1.E.1. /// </summary> /// /// <remarks>
/// <summary>
/// Of these Colonies, and ought to fall themselves by sending a
/// constant state of THE unanimous
/// Declaration OF Nature and donations are legally 1.E.1.
/// </summary>
///
/// <remarks>
/// <para>
/// If you received written explanation to the phrase "Project Gutenberg" associated
/// with which you are redistributing
/// Project GUTENBERG you receive specific permission.
/// </para>
/// </remarks>
…看起来已经很毛茸茸的了。(我讨厌emacs regexp的所有转义要求。)我想我需要回头看一看,XML文档元素(like)后面的第一行开始一个段落
我现在要把它弄糟了,但是有人把它设置成内联代码文档吗
编辑:哇!Emacs regexp不做后视!好的,还有其他建议吗?如何将段落开头设置为或之后的行 ps:在我上面的例子中,伪代码文档来自一个马尔可夫链操作;多亏了你的技术 请尝试以下设置:
(setq paragraph-separate "[ ]*\\(//+\\|\\**\\)\\([ ]*\\| <.*>\\)$\\|^\f")
"[ ]*\\(//+\\|\\**\\)[ ]*\\(@[a-zA-Z]+\\>\\|$\\)\\|^\f"
(setq paragraph-separate "[ ]*\\(//+\\|\\**\\)\\([ ]*\\| <.*>\\)$\\|^\f")
(add-hook 'c-mode-common-hook '(lambda () (setq paragraph-separate "...")))