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

Issue

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 ?

Solution

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.).

Answered By – laguna

Answer Checked By – Marie Seifert (AngularFixing Admin)

Leave a Reply

Your email address will not be published.