Syntax highlighting CakePHP using Eclipse
I’m still waiting for an Eclipse plugin for CakePHP so for now I’m settling with the available PHP syntax highlighting on eclipse. So far I had to define two file-types e.g. *.thtml (for 1.1.x.x) and *.ctp (for 1.2.x.x). Do the following steps for each file-type you want to be associated with the PHP-Editor:
- Open your Eclipse workspace;
- Click on Window | Preferences;
- On the Preference Dialog expand the General node on the tree;
- Click on Content-Types under General;
- On the right panel under Content-Types, expand the Text node;
- Select PHP Source under the Text node;
- You’ll see the list of files associated on the list below e.g. File-Associations;
- Click on the Add button and type the fie extension e.g. *.ctp under file-type;
- Click on Ok to add the file-type;
- Click on Ok to close the Preference Window;
If there’s a currently opened file (with the extension you added), it will not reflect syntax highlighting until you close and reopen the file. You’re all set!
8 Comments »
Leave a comment
-
Recent
- My Move to the OSX (the dark-side)
- Skype & Apache conflict
- Simple yet effective way to replicate/mirror a database (any database at that)
- MySQL .frm recovery
- cakePHP calls crashing Apache
- Reformatting the default CakePHP layout (default.ctp)
- Syntax highlighting CakePHP using Eclipse
- Intersecting Entities on CakePHP Models
- Integrating Flickr into my PHP web-app
- Installing CakePHP
- Accessing a POP3 mailbox using PHP
-
Links
-
Archives
- October 2009 (2)
- April 2009 (2)
- February 2008 (1)
- January 2008 (6)
-
Categories
-
RSS
Entries RSS
Comments RSS
Thanks!
Thanks You
Needed that, thanks!
sweet – thanks!
Thanks!
already i know
Excellent site, keep up the good work
Thanks a lot for that, very helpful.