Visual Studio.NET and PHP Coloring

Posted Sunday, February 22, 2004 3:31 PM by CumpsD

This post has been moved to http://blog.cumps.be/visual-studio-2008-and-php-coloring/ where you can find more information. (with screenshots!)

Archived version below
-----------------------------

Visual Studio is a great editor! But when editing other file formats I miss the coloring.

I'm a PHP coder as well (coming from the fact that I don't like Classic ASP) and I use VS.NET for editing my PHP files as well. And guess what, that's another file format, so no coloring. But I want it, badly.

So, here's the solution:

Download this .zip file, and extract it somewhere.

Run the registry file that matches your VS.NET editor. (The only difference is the 7.0 to 7.1 from 2002 to 2003).

Now copy usertype.dat to your VS.NET directory (default: C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE).

If VS.NET is running, close it and restart.

Now just open a .php file, and admire the coloring. And the '+' signs to collapse functions also work as a nice extra!

Filed under: ,

Comments

# re: Visual Studio.NET and PHP Coloring

Sunday, February 22, 2004 9:42 AM by Dhoore

nice tool! it's very usefull, thanks!

# re: Visual Studio.NET and PHP Coloring

Sunday, February 22, 2004 7:14 PM by CyberWolf

very useful
thanks from another php coder ;)

# re: Visual Studio.NET and PHP Coloring

Monday, February 23, 2004 10:47 AM by Anonymus333

Thanx to another "open" programmer...

# re: Visual Studio.NET and PHP Coloring

Thursday, February 26, 2004 5:46 PM by Bertg

hmmm,
I tought i found that one a while back :p

still waiting for the intellisense plugin for PHP :)

# re: Visual Studio.NET and PHP Coloring

Saturday, March 20, 2004 3:50 PM by edgecrush3r

WHhhhhaaaa.. YOU SAVED MY DAY !!!!! ") Thank you God,!!

# re: Visual Studio.NET and PHP Coloring

Saturday, March 20, 2004 7:41 PM by Mike Knebel

Thank You VERY MUCH!

# re: Visual Studio.NET and PHP Coloring

Monday, April 19, 2004 9:05 AM by mike

top job. i'v ealtered the regs file for actionscript *.as files, lovely job.

# re: Visual Studio.NET and PHP Coloring

Thursday, May 6, 2004 2:00 PM by david

doesn't work for me on VS 7.0.

# re: Visual Studio.NET and PHP Coloring

Wednesday, May 19, 2004 8:01 AM by Simo

Yea, this does not work in Visual Studio .NET 2002. Can anyone help?

# re: Visual Studio.NET and PHP Coloring

Wednesday, May 19, 2004 8:11 AM by Simo

I used the "php_edit2002.reg" which is for 7.0 and it did not work.

# re: Visual Studio.NET and PHP Coloring

Wednesday, May 19, 2004 8:20 AM by Simo

Nope that doesn't work on 2002 either =(. Is there an update from 7.0 to 7.1 or did us 7.0 owners just get shafted?

# re: Visual Studio.NET and PHP Coloring

Wednesday, June 16, 2004 12:52 PM by allegro

VERY COOL!! Now if only I could find the same for .cfm as well.

# re: Visual Studio.NET and PHP Coloring

Friday, June 18, 2004 11:13 AM by -- adds --

Doesn't work for me either.

This is because i do not have C# or C++ installed with my VS.NET ....

# re: Visual Studio.NET and PHP Coloring

Wednesday, July 28, 2004 8:40 AM by ASP.Confused

THANKS!!! Works great for me in VS 2002. :o)

# re: Visual Studio.NET and PHP Coloring

Thanks, cause it works in VS2005. Yay!

# re: Visual Studio.NET and PHP Coloring

Monday, February 5, 2007 1:52 AM by Catalyst

If you come across this looking to color code php in VS2005 there's a simpler way.

Go to Tools>Options>Text Editor

Type 'php' into the 'Extension:',  change 'Editor:' to 'HTML Editor' then click Add then OK.

Open a php file and it will be color coded.