Coloring variables with VS2010 PHP Tools

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Coloring variables with VS2010 PHP Tools

Postby legarsjules » March 26th, 2012, 6:49 pm

Hello!

Is there any way to enable that $ variables would be displayed in another color? Because i use a custom theme color for the editor and the blue color is not very readable?

Thanks in advance.
legarsjules
 
Posts: 4
Joined: March 26th, 2012, 6:46 pm

Re: Coloring variables with VS2010 PHP Tools

Postby Miloslav Beno » March 26th, 2012, 8:06 pm

Hi!

thank you for trying PHP Tools. I agree, the extension should respect custom user settings, so user can change any color he wants. I'll take a look so hopefully it could be done in the next update.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Coloring variables with VS2010 PHP Tools

Postby legarsjules » March 27th, 2012, 7:38 am

Great!

And when did you plan to release a new version ?
legarsjules
 
Posts: 4
Joined: March 26th, 2012, 6:46 pm

Re: Coloring variables with VS2010 PHP Tools

Postby Miloslav Beno » March 29th, 2012, 2:12 pm

We want to have it released in few days. The only thing which is left is this issue - custom color for PHP variable. It could have default color, but we'd prefer to be customizable by user.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Coloring variables with VS2010 PHP Tools

Postby Miloslav Beno » March 29th, 2012, 4:44 pm

I've found out that our extension should present its custom coloring implicitly (in version you have installed) in Options>Fonts and colors>Display Items. There should be PHP - Variable item, but there is a bug in Visual Studio that doesn't refresh these options when new custom display items are added.

There is quick workaround so you don't have to wait for new version:
- Run regedit.exe
- go to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\FontAndColors\Cache\
- delete {A27B4E24-A735-4D1D-B8E7-9716E1E3D8E0}

This will force Visual Studio update its cache and then you should be able to just change a color of PHP - Variable.

In new version we'll just refresh the Fonts and Colors ourselfs.

Cheers!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Coloring variables with VS2010 PHP Tools

Postby Miloslav Beno » March 30th, 2012, 5:40 pm

The new release is out! Hope you'll like it:)
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Coloring variables with VS2010 PHP Tools

Postby legarsjules » April 3rd, 2012, 5:55 am

Hi,

Thanks for the release but i still have a little issue with coloring variable.

Image

I can't change the black words...

Do you know why ?
legarsjules
 
Posts: 4
Joined: March 26th, 2012, 6:46 pm

Re: Coloring variables with VS2010 PHP Tools

Postby Jakub Misek » April 3rd, 2012, 1:41 pm

This color should be possible to override by changing "Identifier" Item foreground (in Options -> Fonts and Colors).

Does it work for you?
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Coloring variables with VS2010 PHP Tools

Postby legarsjules » April 4th, 2012, 5:43 am

it worked, thanks a lot!
legarsjules
 
Posts: 4
Joined: March 26th, 2012, 6:46 pm

Re: Coloring variables with VS2010 PHP Tools

Postby zaus » June 6th, 2012, 5:56 pm

@Miloslav,

I'm using the version with VS2012RC, and I do not see an option for "PHP - Variable" as you mentioned previously. I deleted the registry key you mentioned, but no change. Restarted VS, still no option.

Any suggestions?
zaus
 
Posts: 1
Joined: June 6th, 2012, 3:36 pm

Next

Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 39 guests

cron

User Control Panel

Login

Who is online

In total there are 39 users online :: 0 registered, 0 hidden and 39 guests (based on users active over the past 5 minutes)
Most users ever online was 297 on March 29th, 2024, 7:06 am

Users browsing this forum: No registered users and 39 guests