From f40b9bf33e94a504771f01674171b3ce962daf17 Mon Sep 17 00:00:00 2001 From: Bruce Bruen Date: Mon, 11 Nov 2013 12:01:25 +0000 Subject: [PATCH] [DEVELOPMENT ENVIRONMENT] [NEW] Added $PROJECT, $USER and $DATE macro atoms. These are handy if you write your own Code Snippets. git-svn-id: svn://localhost/gambas/trunk@5952 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- app/src/gambas3/.src/Editor/Code/CSampleCode.class | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/gambas3/.src/Editor/Code/CSampleCode.class b/app/src/gambas3/.src/Editor/Code/CSampleCode.class index 2bf293e22..566aa3485 100644 --- a/app/src/gambas3/.src/Editor/Code/CSampleCode.class +++ b/app/src/gambas3/.src/Editor/Code/CSampleCode.class @@ -194,6 +194,12 @@ Private Sub Make(Optional iIndent As Integer) As String sCar = Project.Description Else If sVar = "$AUTHOR" Or If sVar = "$AUTHORS" Then sCar = Split(Project.Authors, "\n", "", True).Join(", ") + Else If svar = "$USER" Then + sCar = User.Name + Else If svar = "$DATE" Then + sCar = Format$(Now(), gb.MediumDate) + Else If svar = "$PROJECT" Then + sCar = Project.Name Else sCar = sVar Endif