Open the em file under the C:\Documents and Settings\xxxx\my documents\source insight\projects\base folder , and you can see all the Macro definition of a series of functions, attachments are I rewrite a relatively simple annotation macro, you can copy and paste it into the em file, and then press a similar action for the macro set a shortcut key
Of course we can create the em file ourselves, save it to the C:\Documents and Settings\xxxx\my documents\source insight\projects\base folder after creation.
Then open Si->project, open->base project.
Si->project, add project file, and add the saved em file to BASE project .
Si->option, key assignments, find the macro Macro:insertmark you wrote , set a shortcut key for the macro, such as Ctrl+alt +/.
macro Insertmark () {hbuf=getcurrentbuf () ln=getbuflncur (hbuf) sztime= Getsystime (1) Hour=Sztime.hour Minute=Sztime.minute Second=Sztime.second Day=Sztime.day Month=Sztime.month Year=Sztime.yearif(Day <Ten) Szday="[Email protected]@" ElseSzday= Dayif(Month <Ten) Szmonth="[Email protected]@" ElseSzmonth=MonthInsbufline (hbuf, LN,"//Add by Author [@[email protected]/@[email Protected]/@[email protected] "for # # Begin") insbufline (hbuf, ln+2,"//Add by Author [@[email protected]/@[email Protected]/@[email protected] "for # # End")}
Source Insight Add Custom macro