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

后端 未结 1 1126
心在旅途
心在旅途 2021-02-13 23:49

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 highligh

1条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-14 00:32

    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.

    0 讨论(0)
提交回复
热议问题