Skip to main content



      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 06:04 Go to next message
Eclipse UserFriend
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 06:08 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 07:08 Go to previous messageGo to next message
Eclipse UserFriend
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 07: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 13:54 Go to previous messageGo to next message
Eclipse UserFriend
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 11:51 Go to previous messageGo to next message
Eclipse UserFriend
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 19:15 Go to previous messageGo to next message
Eclipse UserFriend
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 14:12 Go to previous messageGo to next message
Eclipse UserFriend
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] Fri, 05 April 2013 22:49 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 15:07:05 EDT 2025

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

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

Back to the top