Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330437

Summary: Highlight syntax as...
Product: z_Archived Reporter: Pau Moreno <pau.moreno>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Pau Moreno CLA 2010-11-17 06:24:04 EST
Hello,

I don't know if this is the right place to submit these requests, forgive me if not.

I found myself coding a rather big JS file with a .php extension (the server .htaccess rewrites the .js request to address the .php file). I think this is quite common for js and css files which need to have some dynamically-generated content.

Well, I miss the feature to "fool" eclipse and tell it that it's actually a js file, and that it should be highlighted following the js syntax rules. In other words, I think that a "Highlight file as... (php, js, etc...)" option would come very handy in some cases.

Thanks!


-- Configuration Details --
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.php.product)
Installed Features:
 org.eclipse.platform 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L