Category : C Source Code
Archive   : BCOMMENT.ZIP
Filename : COMMENT.TEM

 
Output of file : COMMENT.TEM contained in archive : BCOMMENT.ZIP
/********************************************************************/
/* */
/* Borland C++ MACROS for program commenting */
/* */
/* Jeffrey Hebert */
/* Compuserv [72230,3001] */
/* AOL [JeffreyH40] */
/********************************************************************/

/*** macro definition ***/

MACRO ProgramComment
SetInsertMode;
LeftOfLine;
InsertText("/********************************************************************/\n");
InsertText("/* Program: */\n");
InsertText("/* */\n");
InsertText("/* Author: */\n");
InsertText("/* Version: */\n");
InsertText("/* Start Date: */\n");
InsertText("/* Revision History: */\n");
InsertText("/* */\n");
InsertText("/* */\n");
InsertText("/********************************************************************/\n");
ToggleInsert;
END;

MACRO FunctionComment
CursorUp;
SetInsertMode;
LeftOfLine;
InsertText("/********************************************************************/\n");
InsertText("/* */\n");
InsertText("/* ");
CopyBlock;
MoveToBlockEnd;
HideBlock;
CursorUp;
RightOfLine;
CursorDown;
CursorLeft;
CursorLeft;
InsertText("*/\n");
InsertText("/* */\n");
InsertText("/********************************************************************/\n");
ToggleInsert;
END;

MACRO BorderComment
LeftOfLine;
InsertText("/********************************************************************/\n");
END;

MACRO FillerBorderComment
LeftOfLine;
InsertText("/* */\n");
END;

MACRO CommentOut
MoveToBlockBeg;
InsertText("/*\n");
MoveToBlockEnd;
InsertText("\n*/");
HideBlock;
END;

/*** key binding ***/
ctrl-C+^P : ProgramComment;
ctrl-C+^F : FunctionComment;
ctrl-C+^B : BorderComment;
ctrl-C+^C : FillerBorderComment;
ctrl-C+^O : CommentOut;


  3 Responses to “Category : C Source Code
Archive   : BCOMMENT.ZIP
Filename : COMMENT.TEM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/