CakePHP .ctp syntax highlighting in Eclipse

后端 未结 1 1551
难免孤独
难免孤独 2021-02-12 16:52

Why CakePHP decided to build their own file format instead of .tpl is beyond me... despite that, i can\'t get syntax highlighting to work in Eclipse... I\'ve followed this guid

1条回答
  •  独厮守ぢ
    2021-02-12 17:56

    Make sure you have set the correct editor associations and content types

    Go to settings (Window -> preferences)

    Content Types

    1. Type in Content Types in the search box (should show under General -> Types
    2. Click on the arrow next to Text, select PHP Content Type
    3. Add *.ctp by clicking on the Add button on the right side

    File Association

    1. Type in File Associations in the search box on the left
    2. Add *.ctp (click the Add button on the top right side)
    3. Associate the proper editor for it by clicking Add (on the bottom right side) and selecting PHP Editor

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