Eclipse Indigo PDT不会引发语法错误 [英] Eclipse Indigo PDT does not underline syntax errors

查看:131
本文介绍了Eclipse Indigo PDT不会引发语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Eclipse SDK Indigo,然后按照以下说明安装PDT:



这是由 ben-k 链接到主题: Eclipse indigo PDT 3.0 getcha


 下载Eclipse Classic
解压缩/安装到新的文件夹位置(例如c:\eclipse-indigo-win32\
去帮助 - >安装新软件
选择Indigo - http://download.eclipse.org/releases/indigo从

工作与下拉列表
类型php在过滤器文本
选择PHP开发工具(PDT)SDK功能
选择/下一个/确定/同意/完成等..
等待安装并重新启动时出现提示



检查安装版本 - 转到帮助 - >关于点击
安装详细信息按钮 - 查找PHP
开发工具(PDT)all-in-one SDK v3.0.0旁边的版本 - 还检查Eclipse
SDK应该是3.7.0



确保透视被选中, - 旁边的透视按钮 - 点击
图标带有+符号 - 选择其他 - 突出显示 PHP - 选择OK,
现在,PHP将被包含在开放视角列表中


但是我无法启用的功能,突出显示我在Eclipse中加载的文件的语法错误,而不在其中创建项目。



任何人都有线索?



Btw我是Eclipse PDT Helios的快乐用户,能够更新,没有任何问题。

解决方案

在Ubuntu更新之前,Eclipse更新为Indigo之后,我也遇到了同样的问题。

安装PDT后,在文本编辑器(而不是php编辑器)中打开所有.php源文件,这意味着没有应用语法高亮或自动完成(文本为灰色)。 p>

要修复 -



窗口 - >首选项 - >常规 - >编辑器 - >文件关联



* .php的条目首先列出了文本编辑器。



我删除了* .php创建它,phpEditor首先出现在编辑器关联列表中。


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 prompted

to 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.0

ensure 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.

解决方案

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.

这篇关于Eclipse Indigo PDT不会引发语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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