Kaydet (Commit) 0de048dc authored tarafından Enrico Tröger's avatar Enrico Tröger

added new wildcard {geanyversion} to have actual Geany version in filetype…

added new wildcard {geanyversion} to have actual Geany version in filetype templates (e.g. HTML template)


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@160 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst c661df55
/*
* templates.c - this file is part of Geany, a fast and lightweight IDE
*
* Copyright 2005 Enrico Troeger <enrico.troeger@uvena.de>
* Copyright 2006 Enrico Troeger <enrico.troeger@uvena.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -261,6 +261,7 @@ gchar *templates_replace_all(gchar *text, gchar *year, gchar *date)
text = utils_str_replace(text, "{mail}", app->pref_template_mail);
text = utils_str_replace(text, "{company}", app->pref_template_company);
text = utils_str_replace(text, "{untitled}", GEANY_STRING_UNTITLED);
text = utils_str_replace(text, "{geanyversion}", "Geany " VERSION);
return text;
}
/*
* templates.h - this file is part of Geany, a fast and lightweight IDE
*
* Copyright 2005 Enrico Troeger <enrico.troeger@uvena.de>
* Copyright 2006 Enrico Troeger <enrico.troeger@uvena.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -174,7 +174,7 @@ static const gchar templates_filetype_php[] = "<!DOCTYPE html PUBLIC \"-//W3C//D
<head>\n\
<title>{untitled}</title>\n\
<meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />\n\
<meta name=\"generator\" content=\"" PACKAGE " " VERSION "\" />\n\
<meta name=\"generator\" content=\"{geanyversion}\" />\n\
</head>\n\
\n\
<body>\n\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment