Visual Studio 2010是否提供本机PHP支持? [英] Native PHP support in Visual Studio 2010?

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

问题描述

有传言称Visual Studio 2010将本机支持PHP编码吗?

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

如果没有,有什么选择?(VS.php除外)

解决方案

Visual Studio 2010将不具有本机PHP支持.但是,向Visual Studio 2010添加一些语言支持是相对容易的".如果您只需要语法高亮显示,自动注释/取消注释和大括号匹配,就可以由知道新扩展性模型的人坐在一起进行有效.

在您写完这篇文章之后,我开始制作一个插件来向您展示我的意思.我下载WordPress源代码只是为了注意.php扩展名已在Expression Web 3中注册,它确实支持PHP(第一张图片).

我15分钟的扩展尝试(第二张图片)并没有那么令人印象深刻,但是请记住,我回答这个问题后开始进行研究. 编辑:已更新,可以分别为关键字/全局函数/全局对象着色.


(来源: 280z28.org )


(来源: 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天全站免登陆