Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i add syntax highlight in eclipse for cakephp view.ctp files?

When i start to edit a view file like add.ctp , i don't get any syntax highlight in eclipse. How can i get syntax highlight for add.ctp ?

like image 339
shibly Avatar asked Aug 24 '11 19:08

shibly


2 Answers

IN some new version you can add this, Window -> Preferences -> General -> Content Types ->Text -> PHP Content Type and add a new file association for *.ctp.

like image 112
Sandeep Sherpur Avatar answered Oct 14 '22 21:10

Sandeep Sherpur


Navigate to Window -> Preferences -> General -> Content Types -> PHP Content Type and add a new file association for *.ctp. Then associate whatever type of editor you want Eclipse to use for syntax highlighting (php, html, etc.).

like image 43
laguna Avatar answered Oct 14 '22 20:10

laguna