I code Cakephp with Netbeans in Mac Os. My syntaxs in .ctp file doesn't highlighted(colored). I found the answer but only for Windows :( . How can I do for Mac? Tks!
Firstly you'll want to install the CakePHP plugin for Netbeans.
http://plugins.netbeans.org/plugin/44579/php-cakephp-framework
Then you're done.
Windows: Tools -> Options -> Miscellaneous -> Files -> File Extensions -> New -> Type 'ctp' -> OK
MacOS: Netbeans -> Preferences -> Miscellaneous -> Files -> File Extensions -> New -> Type 'ctp' -> OK
Hope this helps!
Go to Tools > Options > Miscellaneous > Files
Select File Extension = 'ctp' - (create one from the new button if the extension doesn't exist in the drop down list already)
Select Associated File Type (MIME) = PHP files
Hope that it will work for you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.