Eclipse Indigo PDT 不强调语法错误
我安装了 Eclipse SDK Indigo,然后按照以下说明在其上安装 PDT:
这是 ben-k< 发布的原始解决方案/a> 链接到主题: Eclipse Indigo PDT 3.0 陷阱
下载“Eclipse Classic” 解压缩/安装到新文件夹位置(例如 c:\eclipse-indigo-win32\ 转到帮助->安装新软件 选择 Indigo - http://download.eclipse.org/releases/indigo
“使用”下拉列表 在过滤器文本中输入“php” 选择“PHP开发工具(PDT)SDK功能 选择/下一步/确定/同意/完成等.. 等待安装并在出现提示时重新启动
要检查安装版本 - 转到“帮助”->“关于”,然后单击 “安装详细信息”按钮 - 查找“PHP”旁边的版本 开发工具 (PDT) 一体化 SDK v3.0.0” - 另请检查“Eclipse SDK”应该是 3.7.0
确保选择透视图, - 在透视图按钮旁边 - 单击 带“+”符号的图标 - 选择“其他” - 突出显示“PHP” - 选择“确定, PHP 现在将包含在开放视角列表中
,但我无法为在 Eclipse 中加载的文件启用突出显示语法错误功能,而无需在其中创建项目。
有人有任何线索吗?
PS 顺便说一句,我是 Eclipse PDT Helios 的快乐用户,并且能够毫无问题地更新它。错误突出显示在其中完美运行。
I installed Eclipse SDK Indigo and then followed the following instructions to install PDT on it:
This is the original solution posted by ben-k link to the topic: Eclipse indigo PDT 3.0 gotcha
download "Eclipse Classic" unzip/install to a new folder location (e.g. c:\eclipse-indigo-win32\ go to help->install new software select Indigo - http://download.eclipse.org/releases/indigo from
the "Work with" drop down list
type "php" in the filter text
Select "PHP Development Tools (PDT) SDK Feature
select /next/ok/agree/finish etc..
wait for install and restart when promptedto check installation version - go to help->about then click the
"Installation Details" button - look for the version next to "PHP
Development Tools (PDT) all-in-one SDK v3.0.0" - also check "Eclipse
SDK" should be 3.7.0ensure perspective is selected, - next to perspective buttons - click
icon with "+" symbol - select "other" - highlight "PHP" - select "OK,
PHP will now be included in the list of open perspectives
But I am unable to enable the feature of highlighting the syntax error for a file which I load in Eclipse without creating a project in it.
Anybody any clue?
P.S. Btw I am a happy user of Eclipse PDT Helios and was able to update that without any problems. Error highlighting is working perfectly in it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Ubuntu 更新期间 Eclipse 更新到 Indigo 后我遇到了同样的问题。
安装 PDT 后,所有“.php”源文件都在文本编辑器(而不是 php 编辑器)中打开,这意味着没有应用语法突出显示或自动完成功能(文本为灰色)。
修复 -
窗口 ->首选项->一般->编辑-> “*.php”的文件关联
条目首先列出了文本编辑器。
我删除了“*.php”条目并重新创建了它,phpEditor 出现在编辑器关联列表中的第一个。
I had same problem after Eclipse update to Indigo during Ubuntu update.
After installing PDT all ".php" source files opened in text editor (instead of php editor) which meant no syntax highlighting or auto-complete was applied (text was grey).
To fix -
Window -> Preferences -> General -> Editor -> File Associations
Entry for "*.php" had text editor listed first.
I deleted entry for "*.php" and re-created it, phpEditor appears first in editor association list.
检查您的源代码是否包含在 PHP 构建路径中(右键单击项目 > 属性 > Php 构建路径)
Check if your sources are INCLUDED in PHP Build Path (Right click on project > Properties > Php Build Path)