comments.sc
Next: compare-win.sc
Up: SmacLib
Previous: color.sc
This file contains some functions to automatically insert C comment
patterns.
- void comment(char line_char, int width); inserts a two
line pattern displaying width times the character line_char at the current position.
Example: comment('x',50); inserts the following pattern:
/* xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */
- void equal_comment(); calls comment('=', 80);
(default binding "
^x=").
- void minus_comment(); calls comment('
', 80);
(default binding "^x
").
- void percent_comment(); calls comment('
', 80);
(default binding "^x
").
- void plus_comment(); calls comment('+', 80);
(default binding "
^x+").
- void sharp_comment(); calls comment('
', 80);
(default binding "^x
").
Lionel Fournigault
Mon Mar 6 13:33:34 MET 1995