[備忘][轉載]Eclipse 中 PHP Editor 關聯 CakePHP *.ctp 檔案(同樣適用於Zend Studio)

來源:互聯網
上載者:User

最近在玩CakePHP,這個架構的View副檔名全是.ctp,這樣編輯的時候沒有php的高亮顯示感覺很不爽,所以就試了試讓他用Eclipse內建的PHP Editor:
1>在開啟的ctp檔案中點擊右鍵,選擇preferences

2>在彈出的視窗中點擊Editor
3>點擊File Associations,在彈出的視窗的File type列表框旁邊點擊Add,添加*.ctp.然後保持選中*.ctp的狀態不變,在下面的列表框附近點擊Add,為*.ctp添加Associated Editor,選中PHP Editor

4>在2>中彈出的視窗中選擇Content Types,展開Text,找到PHP Content Type,然後添加*.ctp.

5>到此設定完成,你再開啟ctp檔案的時候高亮顯示就是php的了。

文章出處:http://luzl.javaeye.com/blog/737175

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.