This article is a program code change by another user. Not original, such as the following summary, use as a personal note.
(1) Open projectbase. Open the file Utils.em and insert the following code:
Insert Time Macro Monthtoname (Monthnum) {if (monthnum== 1) return "" if (monthnum== 2) return "" "if (Monthnu m== 3) return "to" if (monthnum== 4) return "" "if (monthnum== 5) return" if "(monthnum= = 6) return "if (monthnum== 7) return" "if (monthnum== 8) return" if "(monthnum== 9) return "monthnum==" if (monthnum==) return "one" if (monthnum== Return "" "} macro Displaydate () {sztime = Getsystime (1) Day = Sztime.day Month = sztime.month Year = Sztime.year Hour = Sztime.hour Minute = Sztime.minute Second = Sztime.second if (Day < ten) Szday = "[email protected]@" Else Szday = Day Szmonth = Monthtoname (Month) hbuf = Getcurrentbuf () SETBU Fseltext (Hbuf, "/* @[email protected]/@[email protected]/@[email protected]@[email protected ]:@[email protected]:@[email protected] */")}
(2) Assigning shortcut keys:
options->menu Assignments Open the Menu Assignments form, enter macro in command, select the macro (displaydate) you want to use, Add to the appropriate menu. You can also define your own shortcut keys, you can, I define the ctrl+alt+f11.
(Option--key assignment)
You can produce the following effects:
/* 2014/09/28--11:41:15 */
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
(tool) Source Insight High Speed Add time code