Associating CakePHP .ctp Files in Aptana, Eclipse
Thursday, January 14th, 2010Viewing CakePHP’s .ctp files in Aptana Studio has been quite annoying due to the lack of syntax highlighting. I have grown use to it until earlier today when I was converting a .php file into a .ctp. I knew there had to be a way to associate .ctp files with .php files in Aptana/Eclipse. I did a bit of searching and found the solution.
- Go to Window/Preferences/General
- Select Content Types
- In the right pane, select the Text Navigation tree
- Select PHP Content Type
- Click the Add button
- Enter *.ctp and click Ok
If you have a .ctp file open, you will have to close and re-open it to view the changes. Much better.



May 18th, 2010 at 9:03 am
Thanks man, it worked!
July 8th, 2010 at 5:55 pm
domo arigato my good sir
July 9th, 2010 at 5:10 pm
gracias men! zo!
October 3rd, 2010 at 11:10 am
Thanks for the tip. Was a great help because “General > Editors > File associations” doesn’t do snap.
.-= Stepas´s last blog ..Fixing code or writing code – whats better =-.
March 9th, 2011 at 4:04 pm
Wow, thanks! It worked!
March 27th, 2011 at 10:51 pm
Hello! This is my 1st comment here so I just wanted to give a quick shout out and say I really enjoy reading through your posts. Can you recommend any other blogs/websites/forums that deal with the same topics? Appreciate it!