NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
New File templates - Minor Bug in 4.6?


Joined: 12 Aug 2006
Posts: 1
Reply with quote
Hi,

I'm relatively new to phpED, so I might've overlooked something, but I've seen the following issue:

I tried to create a new "new file" template because I want all my PHP files to start with a comment block (copyright notice, author, the standard yadda, yadda, yadda)
So I saved "myPHP File.php" with the following content:
Code:
<?
/*
   Author:  ME
   Project: MyProject
   File: FILENAME
   Purpose: DESCRIPTION_OF_FUNCTION_PURPOSE
   Reliance: WHAT_THIS_RELIES_ON

   Version: 0.1

   Copyright: ME

*/ 
?>


But the result is, that when I create a new file (ctrl+n) and select "myPHP File.php" the following content is displayed:
Code:
<?
/*
    Author:  ME
    Project: MyProject
    File: FILENAME
    Purpose: DESCRIPTION_OF_FUNCTION_PURPOSE
    Reliance: WHAT_THIS_RELIES_ON
    Reliance: WHAT_THIS_RELIES_ON
    Version: 0.1
    Version: 0.1
    Copyright: ME
    Copyright: ME
*/ 
?>

Some testing by me suggests that for every empty line in the template, the last line is repeated.
Though I don't see this in the standard templates.
Note: this behaviour can be circumvented by entering a single space on every empty line.
Anyhow, it's no big bug, but relatively stumping nonetheless.

Cheers for the great IDE!
View user's profileFind all posts by SilverOneSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Right.
We fixed this problem once for 4.5 and seems it was there again.
Hey, check 4620 which is on the site right now Smile
It works good.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
New File templates - Minor Bug in 4.6?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic