Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to associate PHP files that don't have .PHP extension?
icon5.gif  How to associate PHP files that don't have .PHP extension? [message #552464] Thu, 12 August 2010 10:04 Go to next message
Ethereal1m Mising name is currently offline Ethereal1m Mising nameFriend
Messages: 37
Registered: January 2010
Member
Dear all,
how can associate php files that don't have .php extension? Suppose I have a php file that name a.module. Since its extension is .module instead of .php, Eclipse PDT cannot put breakpoint on it also the php coloring scheme is not display on the editor.

How can I fix this?

regards,
ethereal1m
Re: How to associate PHP files that don't have .PHP extension? [message #552465 is a reply to message #552464] Thu, 12 August 2010 10:08 Go to previous messageGo to next message
dominik is currently offline dominikFriend
Messages: 122
Registered: July 2009
Senior Member
On 2010-08-12 12:04, Ethereal1m wrote:
> Dear all,
> how can associate php files that don't have .php extension? Suppose I
> have a php file that name a.module. Since its extension is .module
> instead of .php, Eclipse PDT cannot put breakpoint on it also the php
> coloring scheme is not display on the editor.
>
> How can I fix this?

Window->preferences->General->Editors->File Association->Add..

:)

dmc
Re: How to associate PHP files that don't have .PHP extension? [message #552472 is a reply to message #552464] Thu, 12 August 2010 10:28 Go to previous messageGo to next message
Ethereal1m Mising name is currently offline Ethereal1m Mising nameFriend
Messages: 37
Registered: January 2010
Member
hey,
thanks for the fast reply, but after I associate .module extension with php and text editor, it doesn't fix the problem, the color scheme still doesn't show and breakpoint still cannot be set (it tries to set a bookmark instead)...

Any idea?

Re: How to associate PHP files that don't have .PHP extension? [message #552483 is a reply to message #552464] Thu, 12 August 2010 11:08 Go to previous messageGo to next message
Ethereal1m Mising name is currently offline Ethereal1m Mising nameFriend
Messages: 37
Registered: January 2010
Member
got it, I need to add association to the content through:
Window > Prefrences > General > Content Types > Text > PHP Content Type
Re: How to associate PHP files that don't have .PHP extension? [message #552487 is a reply to message #552472] Thu, 12 August 2010 11:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotremovemail.com

I found that on eclipse pdt 2.2, I had to restart eclipse in order for
the file content association to work properly.

Dave

On 12/08/2010 11:28, Ethereal1m wrote:
> hey,
> thanks for the fast reply, but after I associate .module extension with
> php and text editor, it doesn't fix the problem, the color scheme still
> doesn't show and breakpoint still cannot be set (it tries to set a
> bookmark instead)...
>
> Any idea?
>
>
icon3.gif  Re: How to associate PHP files that don't have .PHP extension? [message #555479 is a reply to message #552464] Thu, 26 August 2010 17:54 Go to previous messageGo to next message
Chris Charlton is currently offline Chris CharltonFriend
Messages: 8
Registered: January 2010
Location: Los Angeles, CA
Junior Member
I assume you're adding *.module for Drupal sites. Please check out my PDT plug-in for Drupal development at http://xtnd.us/eclipse/install because it'll add *.module, *.install, *.theme, and so on, for you.
Re: How to associate PHP files that don't have .PHP extension? [message #999255 is a reply to message #555479] Fri, 11 January 2013 16:51 Go to previous messageGo to next message
charmi shah is currently offline charmi shahFriend
Messages: 1
Registered: January 2013
Junior Member
To include drupal files into eclipse follow the below steps:
go to window-> preferences-> General ->content Type -> Text-> PHP content type->
add new *.info,*.module and *.install file association in it.

hope this may help you!
Re: How to associate PHP files that don't have .PHP extension? [message #1034019 is a reply to message #999255] Thu, 04 April 2013 23:15 Go to previous messageGo to next message
normk Mising name is currently offline normk Mising nameFriend
Messages: 2
Registered: October 2011
Junior Member
this does not help in Juno version of Eclipse. The problem is the %content-type.name.0 bug described at stackoverflow questions 13297314. Unfortunately, the jar file mentioned for the workaround is no longer included in Juno builds even though the bug still persists.
Re: How to associate PHP files that don't have .PHP extension? [message #1034648 is a reply to message #1034019] Fri, 05 April 2013 18:12 Go to previous messageGo to next message
Dennis Sutch is currently offline Dennis SutchFriend
Messages: 1
Registered: April 2013
Junior Member
The manual solution provided in stackoverflow post 13297314 (cannot-see-php-content-type-in-eclipse-preferences) does work to change the label to "PHP Content Types". However, Eclipse still does not recognize any files matching file associations added to this content type as being PHP files.
Re: How to associate PHP files that don't have .PHP extension? [message #1034897 is a reply to message #1034648] Sat, 06 April 2013 02:49 Go to previous message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
Guys...
PHP Content Types label problem is on PDT 3.1.1. The latest PDT 3.1.2 has no such problem.
Previous Topic:Provisioning exception
Next Topic:how to install PDT 64bit windows by juno?
Goto Forum:
  


Current Time: Thu Apr 25 00:31:57 GMT 2024

Powered by FUDForum. Page generated in 0.04026 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top