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 145866

Summary: PHP Files with <? ... ?> tags inside and without php file extension have not php coloring etc
Product: php Reporter: Victoria Zhukovskaya <victoriaz>
Component: EditorAssignee: rmatous <rmatous>
Status: VERIFIED INVALID    
Severity: blocker CC: tslota
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: src

Description Victoria Zhukovskaya 2008-09-02 09:36:30 UTC
Product Version: NetBeans IDE Dev (Build 200809020201)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06

PHP Files with <? ... ?> tags inside and without php file extension have not php coloring etc

1. Create Project from sources (see attachment src)

there are
index.php file

newfile1 has php tags <? ... ?>
newfile2 <?php ... ?>

newfile1.ttt <? ?>
newfile2.ttt <?php ... ?>

files newfile1 and  newfile1.ttt have not coloring/highliting, project tree shows these files without php icon.

workaround -  
  rename files before creating project
Comment 1 Victoria Zhukovskaya 2008-09-02 09:37:14 UTC
Created attachment 68832 [details]
src
Comment 2 Petr Pisl 2008-09-19 10:25:39 UTC
Victoria, did you assign the php mimetype to the files with extension ttt?
Comment 3 rmatous 2008-09-24 12:08:50 UTC
Peter's comment points to probable cause, which is as designed
Comment 4 Victoria Zhukovskaya 2008-10-09 14:27:30 UTC
yes You are right