how i add ctp extension in netbeans
Asked Answered
T

4

11

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!
Tudela answered 26/4, 2010 at 6:0 Comment(1)
In step 4, you write "Click on New file extension and enter tpl." Did you enter "tpl" or "ctp"? I downloaded and installed Netbeans, followed the instructions you posted (with the 'ctp' extension), and it worked great.Nu
S
34

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.

Seato answered 8/9, 2010 at 16:14 Comment(2)
I guess you need to set "Associated File Type (MIME)" = "PHP Files (text/x-php5)"Loudermilk
No, you are not "finished." As of Netbeans 8.2, you still can not create a new file with the "ctp" extension. You can create a new file with any other extension, but it will not allow you to rename the file to a "ctp" extension. You basically need to create the file, then rename it from the OS.Ridgepole
P
7

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"

Proceleusmatic answered 13/8, 2015 at 8:15 Comment(1)
Same comment as above for @user442616. Netbeans will recognize the "ctp" file and syntax color it like a "PHP" file, but it still won't let you create a new file with a "ctp" extension from within the IDE.Ridgepole
R
3

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

Remission answered 21/12, 2014 at 20:56 Comment(1)
OK, not surprisingly, this answer actually works. Up-vote.Ridgepole
B
0

Create an empty file and then put your desired extension.

Bonacci answered 8/7, 2010 at 7:17 Comment(2)
This doesnt work as Netbeans automatically creates the extension for you when you choose the file typeSass
Create an empty file with the desired extension in the desired directory/folder from the OS. Netbeans will not create the file for you, but it doesn't complain when it's there already.Ridgepole

© 2022 - 2024 — McMap. All rights reserved.