Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

How can I change the PHP variables color in Eclipse? It is very light blue/gray by default. I go to preferences and click on all the editors but doesn't seem it is there.

By the way, I install the Eclipse 3.5.1 with PHPEclipse 1.2.x plugin.

share|improve this question

2 Answers 2

up vote 5 down vote accepted

I am using Eclipse IDE for PHP Developers version 1.2.x and my path is as follows,

Preferences > PHP > Editor > Syntax Coloring > Variable

Try to download the PHP Development Tools (PDT) instead of PHPEclipse

share|improve this answer
    
Well.. i only have Preferences > PhpEclipse > PHP or Preferences > PhpEclipse > PHP Extneral Tools then there is no syntax coloring. I find there is for "java". It may do too but I don't want to mess up the syntax color for java file. :) –  Murvinlai Feb 5 '10 at 23:01
    
I would suggest downloading Eclipse IDE for PHP Developers updated my answer to include the link. –  Anthony Forloney Feb 5 '10 at 23:12
    
the problem is.... Eclipse IDE for PHP is win32. And I really can't find the 64 bit one. So, I stuck with installing the 'regular' 64bit Eclipse (java) and then do the PHPEclipse plugin. –  Murvinlai Feb 8 '10 at 18:12
    
I hope the 64-bit Windows version comes out soon for your sake. If I find anything helpful, I'll update my answer –  Anthony Forloney Feb 8 '10 at 18:33
    
Thanks. :) I spent hours of install Eclipse for PHP.. and hours of trying to figuring out how to change the syntax color. I think I just stick with the default color for now. :) –  Murvinlai Feb 8 '10 at 19:09

I have eclipse Helios running with 'PHPEclipse' plugin. I was able to resolve similar issue by making sure PHP files open with 'PHP Editor'.

  1. Right-click on the file, select 'open with' -> 'Other'.
  2. Choose 'PHP Editor'.

You can set 'syntax coloring preferences' at Window -> Preferences -> PHPEclipse -> PHP -> Tab syntax

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.