Visual Studio 2010 中的本机 PHP 支持? [英] Native PHP support in Visual Studio 2010?

查看:18
本文介绍了Visual Studio 2010 中的本机 PHP 支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于 Visual Studio 2010 将原生支持 PHP 编码的传言是否属实?

(
(来源:
(来源:280z28.org)

Is there any truth to the rumor that Visual Studio 2010 will natively support PHP coding?

(http://www.codeplex.com/php4vs)

If not,what are the options?(except VS.php)

解决方案

Visual Studio 2010 won't have native PHP support. However, it's "relatively easy" to add some language support to Visual Studio 2010. If all you want is syntax highlighting, auto comment/uncomment, and brace matching, it could be done in one sitting by someone who knows how the new extensibility model works.

After you wrote this post, I started making an add-in to show you what I mean. I downloaded the WordPress source only to note that the .php extension is registered with Expression Web 3, which does support PHP (first image).

My 15 minute attempt at an extension (second image) is not as impressive, but keep in mind I started working on it after I answered this question. Edit: Updated to color keywords/global functions/global objects separately.


(source: 280z28.org)


(source: 280z28.org)

这篇关于Visual Studio 2010 中的本机 PHP 支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆