This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 7.0 Beta 2 (Build 201102140001) Operating System = Windows 7 version 6.1 running on x86 Java; VM; Vendor = 1.6.0_18 Runtime = Java HotSpot(TM) Client VM 16.0-b13 I using Opencart as my platform, I found that not all .tpl also view in PHP style. some just open like plain text. all in black color. It didn't take my PHP colour scheme. What is the problem?
Could you please attach a screenshot of such situation? I have a few questions: When you close and open such file, it helps? Do the files have the right icons? Is possible to put a breakpoint to a php code and if yes, it's the breakpoint correctly colored? Thanks.
Created attachment 106341 [details] before reopening, with breakpoints
Created attachment 106342 [details] after reopening
Comment on attachment 106341 [details] before reopening, with breakpoints Bad issue, please ignore this file
Comment on attachment 106342 [details] after reopening Bad issue, please ignore this file
Created attachment 106387 [details] print screen for NB6.9.1 & 7.0 B2, no php syntax color loaded The file icon is a blank text file, I upload a print screen for NB 6.9.1 and 7.0 B2. I am not to create a breakpoint in the black text format (no php syntax color loaded).
So there are the same files recognized in wrong way in NB 6.9.1 and NB 7.0 B2? There are always the same? Or occasionally?
If there are always the same, could you please provide me such file?
Created attachment 106529 [details] Solution for this issue My Solution. I think it is because NetBeans cannot recognize .tpl (but I not sure why can recognize some of it). For those blank icon file, I right click on it, then I selected "Open As..." Then I select0 "PHP Files" then the problem solved. Maybe Netbeans developer can set .tpl default is run is PHP Files.
Did you register the .tpl extension for php mimetype? You can do it in Tools->Options->Miscellaneous->Files tab where is File Associations. I though that you did this, because you mentioned that some .tpl files are opened as php ans some not. I'm closing this bug for now. Please reopen the bug if you registered the .tpl extension for php mimetype and still the .tpl file are not recognized as php files. Thanks.
I am not sure I had register the extension or not. But what you can see from my print screen (2 of my print screen show that the .tpl some got PHP icon, but some are not). How come some of the .tpl is register as PHP but some are not. This is what make me report this as bug.