In Eclipse, PHPEditor is associated with CakePHP *. the ctp file is recently playing with CakePHP. The View file extension of this framework is all. in this way, it is uncomfortable to edit php without highlighting, so I tried to associate the PHP Editor with CakePHP * in Eclipse *. ctp file
Recently, I am playing with CakePHP. The View File extensions of this framework are all. in this way, it is uncomfortable to edit php without highlighting, so I tried to let him use the PHP Editor that comes with Eclipse:
1> right-click the open ctp file and select preferences
2> Click Editor in the pop-up window.
3> Click File Associations. in the pop-up window, click Add next to the File type list box to Add *. ctp. then keep the selected *. the status of the ctp remains unchanged. click Add near the list box below, which is *. add the Associated Editor to the ctp and select the PHP Editor.
4> in the 2> dialog box that appears, select Content Types, expand Text, find PHP Content Type, and add *. ctp.
5> The setting is complete. when you open the ctp file again, it is highlighted as php.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.