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

问题描述

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



这是由链接到主题:

但是我无法启用的功能,突出显示我在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

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不会引发语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 02:34