Re: Add default text to each new code page
Posted: Thu Aug 09, 2012 8:56 pm
I added the possibility to execute a tool when a new source is created. This way you can generate any header you want with a simple tool like this:
It should be available in the next beta.
Code: Select all
; Configure as
;
; Commandline: "%TEMPFILE"
; Trigger: "New Sourcecode created"
; [x] Wait until tool quits
; [x] Reload Source after tool has quit
; (x) into current source
; [x] Hide tool from the Main menu
;
File$ = ProgramParameter()
If CreateFile(0, File$)
WriteStringN(0, ";")
WriteStringN(0, "; Created on: " + FormatDate("%dd/%mm/%yyyy %hh:%ii", Date()))
WriteStringN(0, ";")
CloseFile(0)
EndIf