NetBeans is one of the best and powerful IDE for any WebDevelopment specially best for PHP frameworks such as ZenCart, OpenCart, CakePhp etc.
CakePhp use their own custom file extension for its View files i.e. *.ctp. NetBeans doesn’t know about this file by default. So there are no color coding will be shown when these types of files are opened in the NetBeans. We have to manually enable these features.
Below are the steps to enable highlighting for CakePHP .ctpfiles.
1. Go to Tools => Options
2. Click on Miscellaneous => Files
3. Click on New button and type ctp. Then click on Ok.
4. From Associated File Type (MIMI): Choose: text/x-php5.
5. Click on OK.
Note: Restart the IDE if changes don’t reflected after doing the above steps.