Page 1 of 1

Re: Add default text to each new code page

Posted: Thu Aug 09, 2012 8:56 pm
by freak
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:

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
It should be available in the next beta.

Re: Add default text to each new code page

Posted: Thu Aug 09, 2012 9:41 pm
by ts-soft
freak wrote:I added the possibility to execute a tool when a new source is created.
Good Idea, thanks :D