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.

Bug 195833 - NetBeans PHP Edition start from 6.9.1 to 7.0 B2, not all .tpl load as php
Summary: NetBeans PHP Edition start from 6.9.1 to 7.0 B2, not all .tpl load as php
Status: RESOLVED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-23 03:55 UTC by shiroamada
Modified: 2011-02-28 15:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
before reopening, with breakpoints (120.02 KB, image/png)
2011-02-23 16:00 UTC, Vladimir Riha
Details
after reopening (119.18 KB, image/png)
2011-02-23 16:00 UTC, Vladimir Riha
Details
print screen for NB6.9.1 & 7.0 B2, no php syntax color loaded (66.62 KB, image/gif)
2011-02-24 01:08 UTC, shiroamada
Details
Solution for this issue (87.95 KB, image/gif)
2011-02-28 09:26 UTC, shiroamada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shiroamada 2011-02-23 03:55:12 UTC
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?
Comment 1 Petr Pisl 2011-02-23 15:46:42 UTC
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.
Comment 2 Vladimir Riha 2011-02-23 16:00:10 UTC
Created attachment 106341 [details]
before reopening, with breakpoints
Comment 3 Vladimir Riha 2011-02-23 16:00:55 UTC
Created attachment 106342 [details]
after reopening
Comment 4 Vladimir Riha 2011-02-23 16:03:16 UTC
Comment on attachment 106341 [details]
before reopening, with breakpoints

Bad issue, please ignore this file
Comment 5 Vladimir Riha 2011-02-23 16:03:26 UTC
Comment on attachment 106342 [details]
after reopening

Bad issue, please ignore this file
Comment 6 shiroamada 2011-02-24 01:08:16 UTC
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).
Comment 7 Petr Pisl 2011-02-24 10:39:07 UTC
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?
Comment 8 Petr Pisl 2011-02-24 10:39:51 UTC
If there are always the same, could you please provide me such file?
Comment 9 shiroamada 2011-02-28 09:26:52 UTC
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.
Comment 10 Petr Pisl 2011-02-28 11:19:03 UTC
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.
Comment 11 shiroamada 2011-02-28 15:04:59 UTC
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.
Comment 12 shiroamada 2011-02-28 15:04:59 UTC
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.