How to manually specify syntax highlighting for a

2019-03-25 02:45发布

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?

1条回答
我命由我不由天
2楼-- · 2019-03-25 03:11

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.

查看更多
登录 后发表回答