NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
few questions about PhpED


Joined: 22 May 2009
Posts: 2
Reply with quote
I've been using the trial for a week now and it seems great. However, few things puzzles me though.

1) I have a xml file that that contains 99% html (own template-system). Can i change the highlighter somewhere, now the html + js is only black text and it doesnt look very good (= readable).
Code:

<?xml version="1.0" encoding="UTF8"?>
<templates>
    <template name="TEMPLATE">
    <![CDATA[
    <a href="#">asdfas</a>
    ]]>
    </template>
</templates>

2) Can i fix the autocompleter to use parent class methods?
Code:

class parent
{
   public function __construct()
   {
      global $Someclass;
      $this->Someclass = &$Someclass;
   }
}

class child extends parent
{
    public function __construct()
   {
       parent::__construct();
       $this->Someclass->????
   }
}


Had some other questions also but forgot them already Sad
View user's profileFind all posts by RevengeSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
Can i change the highlighter somewhere

Highlighter recognizes files by their extensions. All the associations between languages and file extensions can be set in Tools->Settings->File Associations. But anyway, I'm sure CDATA will remain unhighlighted.

Quote:
Can i fix the autocompleter to use parent class methods?


There is nothing fix in "the autocompleter". You have to use typehint for your "$Someclass" global variable, otherwise nobody seeing your code sample would tell what class instance in this variable.

I hope you used "parent" word as a class name only for the sake of this sample. You can't use it as a class name. It's a reserved word.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 22 May 2009
Posts: 2
Reply with quote
dmitri wrote:

I hope you used "parent" word as a class name only for the sake of this sample. You can't use it as a class name. It's a reserved word.


Ye, i just typed those "samples" on the new post box without thinking too much Smile
View user's profileFind all posts by RevengeSend private message
few questions about PhpED
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