How can i customize the php file template. |
Guru master
|
The templates are stored in the templates/ subdirectory of your PhpED installation. Just modify the "Php File.php" and "Php5 File.php5" and you're all set!
The current date and time is not possible AFAIK however. Perhaps in combination with an integration command? |
||||||||||||
|
|
Hi,
Thanks for your reply. I Know that file location. Bu t the problem is that i want to put current file location there. as well as current year. What is the code (i can remember there is dome code but forget what is that) to add that. Could u pls tell me about that? Hasan |
||||||||||||
|
consider running a script |
|
Hi,
here is a method of making a script: copyright.php <?php //output copyright information $datetime = date('m-d-Y::h:m'); $year = date("Y"); $html = "/**\n"; $html .="/* @author M H Rasel\n"; $html .="/* $datetime\n"; $html .="/* @copyright $year\n"; $html .="*/\n"; echo $html; ?> ____________ save this file in a folder: For example, my scripts are under: C:\xampp\htdocs\myScripts Under tools>settings>integration, add a new menu: "copyright" Execute with: shell command line: c:\xampp\php\php.exe c:\xampp\htdocs\myScripts\copyright.php (replace the path to php.exe and copyright.php with path appropriate for your setup) check mark: show this command in tools menu Return results to editor insert(vs replace) Start a new file, now run the script from your tools menu: tools>scripts>copyright ...I get: /** /* @author M H Rasel /* 06-22-2009::04:06 /* @copyright 2009 */ You can set up a short-cut key to this script. I haven't looked into perhaps auto-running scripts with new file creation... good luck, hope this helps |
||||||||||||
|
opps... here's the correct date string |
|
date('m-d-Y::h:i');
|
||||||||||||
|
How can i customize the php file template. |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by