NetBeans で ctp ファイルをphpとしてハイライト

NetBeansでCakePHPを使用したら、ctpファイルなるテンプレートファイルが認識できなかった。
そこで、拡張子がctpの場合はphp拡張子と同じようにハイライトするようにした。

  1. ツール→オプション→その他
  2. 「ファイル」タブを選択
  3. ファイル拡張子、新規
  4. ctpを入力20131124_1
  5. 関連づけられたファイルの種類で「text/x-php5」を選択。
    20131124_2

以上。

 

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>