Page 1 of 2
Coloring variables with VS2010 PHP Tools
Posted:
March 26th, 2012, 6:49 pm
by legarsjules
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.
Re: Coloring variables with VS2010 PHP Tools
Posted:
March 26th, 2012, 8:06 pm
by Miloslav Beno
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.
Re: Coloring variables with VS2010 PHP Tools
Posted:
March 27th, 2012, 7:38 am
by legarsjules
Great!
And when did you plan to release a new version ?
Re: Coloring variables with VS2010 PHP Tools
Posted:
March 29th, 2012, 2:12 pm
by Miloslav Beno
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.
Re: Coloring variables with VS2010 PHP Tools
Posted:
March 29th, 2012, 4:44 pm
by Miloslav Beno
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!
Re: Coloring variables with VS2010 PHP Tools
Posted:
March 30th, 2012, 5:40 pm
by Miloslav Beno
The new release is out! Hope you'll like it:)
Re: Coloring variables with VS2010 PHP Tools
Posted:
April 3rd, 2012, 5:55 am
by legarsjules
Hi,
Thanks for the release but i still have a little issue with coloring variable.
I can't change the black words...
Do you know why ?
Re: Coloring variables with VS2010 PHP Tools
Posted:
April 3rd, 2012, 1:41 pm
by Jakub Misek
This color should be possible to override by changing "Identifier" Item foreground (in Options -> Fonts and Colors).
Does it work for you?
Re: Coloring variables with VS2010 PHP Tools
Posted:
April 4th, 2012, 5:43 am
by legarsjules
it worked, thanks a lot!
Re: Coloring variables with VS2010 PHP Tools
Posted:
June 6th, 2012, 5:56 pm
by zaus
@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?