views:

293

answers:

3

Hope the title explains it all, but all I'm trying to do is open some .php files in my web-site solution and have Visual studio treat them as if they are html files. I don't need the actual PHJP code highlighted (it's only includes). The HTML syntax should be parse-able, should it not?

+5  A: 

Tools -> Options -> Text Editor -> File Extension

in the Extension box, put .php. For the Editor, you can select HTML Editor. Click Add, then OK

Josh E
+1, ah that what I meant.
Simeon Pilgrim
yep I had to do the same thing a few months back, and I didn't want to mess with a dedicated PHP IDE since it was for a quickie scratch project
Josh E
+1  A: 

If you want intellisense, debug, and other advanced functionality, you could get the php ide for VS

If all you need is syntax highlighting, check out this link. It's what I'm currently using, but doesn't have all the goodies of vs.php.

Rado
A: 

Install Phalanger.

Pavel Minaev