NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
File Extension Command Line PHP


Joined: 05 Jun 2009
Posts: 2
Reply with quote
Hi there!
Just recently moved to PHPED trying to get away from zend studio.
Most of the scripts we are creating are for command line use. We usually do not end them with the .php or .php.sh , they simply do not have an extension and we start the script with the location of the interpreter for the shell to find it (i.e. : #! /usr/local/bin/php -q ).
How do I set up PHPed to recognize and highlight the code properly when I load these file up?

Thank you for your help.
View user's profileFind all posts by michelangelo67Send private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
As far as I know php bases it's highlight settings solely on the extension list defined in IDE> Assocoations.
There is no way to force it in a specific mode or have it recognize extension-less files.
View user's profileFind all posts by BlizzSend private messageVisit poster's website
Re: File Extension Command Line PHP


Joined: 27 Apr 2007
Posts: 72
Reply with quote
michelangelo67 wrote:
Hi there!
Just recently moved to PHPED trying to get away from zend studio.
Most of the scripts we are creating are for command line use. We usually do not end them with the .php or .php.sh , they simply do not have an extension and we start the script with the location of the interpreter for the shell to find it (i.e. : #! /usr/local/bin/php -q ).
How do I set up PHPed to recognize and highlight the code properly when I load these file up?


Try in Settings->Associtaitons associate PHP Files with just asterisk, eg. *.php5;*.inc5;*.php;*.inc;*.phtml;* (note the last asterisk)
View user's profileFind all posts by sirjardaSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
I think there might be a problem with highlighting for the other formats then.
Depending on the order in which the match is attempted, everything might be highlighted as being PHP.
If that isn't a issue then go for it Smile
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 27 Apr 2007
Posts: 72
Reply with quote
Blizz wrote:
I think there might be a problem with highlighting for the other formats then.
Depending on the order in which the match is attempted, everything might be highlighted as being PHP.
If that isn't a issue then go for it Smile


Yes, I know. But better than nothing Wink
View user's profileFind all posts by sirjardaSend private message


Joined: 05 Jun 2009
Posts: 2
Reply with quote
adding the * at the end of the associations for php5 did the trick.
Just for the story, I also contacted support who told me this was not possible and .. to bad for me.
Big thank you to sirjada.

I also agreed this will make by default everything php .. but that's what we use PHPed for Laughing .

Thank you !

Problem solved.
View user's profileFind all posts by michelangelo67Send private message
File Extension Command Line PHP
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