Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to manually specify syntax highlighting for a specific extension in Eclipse?

I am editing some files with the extension '.ctp'. Although these files are perfectly valid PHP files, Eclipse doesn't seem to know that and refuses to do any syntax highlighting with them.

How can I manually instruct it to use PHP syntax coloring for '.ctp' files? Is there even a way to do that?

like image 820
Nathan Osman Avatar asked Nov 09 '10 06:11

Nathan Osman


1 Answers

In Preferences, go to General -> Content Types. Unfold Text, then go to PHP Content Type. Click Add and input *.ctp. Then apply your changes.

You may need to restart eclipse to take effect.

like image 149
netcoder Avatar answered Oct 22 '22 07:10

netcoder