IDE - %Tokens in Template Files

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
spikey
Enthusiast
Enthusiast
Posts: 750
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

IDE - %Tokens in Template Files

Post by spikey »

I'd like to be able to use % tokens in the body of template files.

For example here's my blank template for a new pbi file:

Code: Select all

; aaa functions.

;- Version Control
; 1.00.00 xxx yy/yy/yyyy Created.

;- Compiler Directives
; 1.00.00 xxx yy/yy/yyyy Created.
EnableExplicit

;- Constants
; 1.00.00 xxx yy/yy/yyyy Created.

;- Declare Procedures

;- Implementation

At the moment I have to change the 'variables' myself so xxx is my initials, yy are date fields. I also have another which adds a new version control entry when I make a change to, well - anything really.

For instance I'd like to be able to use %BUILDCOUNT from the compiler directives and also all the % tokens from the Date library which would make these templates just a little slicker.

:D