how i add ctp extension in netbeans

2019-03-13 08:25发布

问题:

How i add CTP Extension using following method but it is not worked can any one help me ?

  1. Open preferences.
  2. Select Miscellaneous tab.
  3. Select Files sub-tab thing.
  4. Click on New file extension and enter tpl.
  5. Select the mime type.
  6. Click ok. Done!

回答1:

Go to : Tools -> Options -> Miscellaneous -> Files

Then : Click on "New" -> Type in ctp -> Click "OK"

Associate with PHP text/x-php5

And you are finished.



回答2:

To add the ctp extension in netbeans

  • Go to Tools -> Options -> Miscellaneous -> Files

  • then click on "New" -> Type in ctp -> Click "OK"

  • After "Associated File Type (MIME)" -> select (text/x-php5) -> Click "OK"



回答3:

You could install plugin PHP CakePHP Framework and enable it for desired projects.



回答4:

Create an empty file and then put your desired extension.