对支持文学编程的文本编辑器的功能请求 [英] Feature request for a text-editor with support for literate programming
问题描述
这是对 Visual Studio 的作者和任何其他程序员编辑器的功能请求.
This is a feature request for the writers of Visual Studio and any other programmer's editor.
考虑一个读写程序如下:
Consider a literate program as follows:
/* File Name: LiterateProgram.h */ // \begin{comment}
#pragma once
#include "myHeader.h"
/* \end{comment}
%\bigskip
\begin{lstlisting} %
*/
class CSomeClass : public CSomeBase {
public:
float someFunction(float some paramter);
};
// \end{lstlisting} \begin{comment}
/* \end{comment} %*/
我想要一个编辑器窗口,在右下角有两个小图标,分别代表 (COLLAPSE_CODE) 和 (COLLAPSE_COMMENTS).如果 COLLAPSE_COMMENT,则文件视图将如下所示:
I'd like an editor window with two small icons representing (COLLAPSE_CODE) and (COLLAPSE_COMMENTS) in the bottom right corner. If COLLAPSE_COMMENT, then the view of the file would look like:
+
#pragma once
#include "myHeader.h"
+
class CSomeClass : public CSomeBase {
public:
float someFunction(float some paramter);
};
+
如果是 COLLAPSE_CODE,则文件视图如下:
If COLLAPSE_CODE, then the view of the file would look like:
/* File Name: LiterateProgram.h */ // \begin{comment}
+
/* \end{comment}
%\bigskip
\begin{lstlisting} %
*/
+
// \end{lstlisting} \begin{comment}
+
/* \end{comment} %*/
同时显示两个视图的并排分屏的奖励积分.(如果同时选择了两个图标,也许这就是行为).
Bonus points for displaying a side-by-side splitscreen of both views simultaneously. (maybe that's the behaviour if both ICONS are chosen).
推荐答案
试试这个
#region abc
//your code here
#endregion
http://msdn.microsoft.com/en-us/library/9a1ybwek%28v=VS.100%29.aspx
这篇关于对支持文学编程的文本编辑器的功能请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!