syntax highlighting does not work, all the PHP code is gray
Posted: September 8th, 2011, 5:41 pm
For anyone facing the same problem, i've copied a part of following mail conversation:
...
Nathan wrote:Hello,
I am evaluating Phalanger with Visual Studio 2010 Ultimate. I was excited to try this out. I installed it successfully, including the Tools for VS. But when I opened a php file in VS2010, it shows everything in gray text, like normal. There is no syntax coloring/highlighting, nothing. How can I fix this?
Thanks,Nate Jensen
...
Jakub Míšek wrote:It seems your Visual Studio is configured to open .php files using integrated “XML (Text) editor”. To allow our integration to colorize the code etc. you have to open .php files using “Source code (text) Editor”. Try to open some .php file from File – Open menu, and choose Open with option.Then select “Source code (text) Editor” or “Automatic …”, “Set as Default” and the code should be colorized from now. I hope it will help. Regards,Jakub Misek
Nathan wrote:Jakub, It worked!! Thank you so much. This is really awesome, and I’m happy there is an open-source alternative to the $100 VS.PHP.(...)