Category : C Source Code
Archive   : BCOMMENT.ZIP
Filename : COMMENT.TEM
/* */
/* 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;
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/