如何启用自动完成/语法高亮在Eclipse中的PHP核心功能? [英] How to enable autocomplete/syntax-highlight for PHP core functions in Eclipse?
本文介绍了如何启用自动完成/语法高亮在Eclipse中的PHP核心功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我搜索了很多,检查多次neccesary步骤,但它仍然不起作用。
我的环境是:
-
有关PHP开发包最新的Eclipse
-
项目是newed,而不是直接从SVN检查
-
的.project有行
<自然与GT; org.eclipse.php.core.PHPNature< /自然与GT;
块引用> -
.buildpath有行
< buildpathentry样=CON路径=org.eclipse.php.core.LANGUAGE/>
块引用> -
.settings / org.eclipse.core.resources。preFS
有行的include_path = 0; /项目名称
块引用> -
文件确保在PHP编辑器中打开
东西如下:
- PHP核心功能认定中显示,当鼠标移到和Ctrl +单击将打开它的定义文件,但输入'改编'什么也不会发生,而阵列功能的列表有望
- 自动完成并用于内部functios /变量,如班级成员的工作
但从来没有适用于PHP的核心功能,无论是语法高亮
解决方案
右键点击您的项目 - >配置 - >添加PHP支持...
为我工作于Eclipse 3.5 / 2.1 PDT
I searched a lot, checked many times the neccesary steps, but it still don't work.
My environment is :
Latest eclipse for PHP developer package
Project is newed, not check out directly from SVN
.project has a line
<nature>org.eclipse.php.core.PHPNature</nature>
.buildpath has a line
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
.settings/org.eclipse.core.resources.prefs has a line
include_path=0;/projectname
file ensured opened in PHP Editor
Something works:
- PHP core function defination displayed when mouse over, and Ctrl+Click will open its defined file, but input 'arr' nothing happens, while a list of array functions expected
- Autocomplete does work for internal functios/variables such as class members But never works for PHP core functions, neither syntax highlighting
解决方案
Right-Click on your project -> Configure -> Add PHP Support...
Works for me on Eclipse 3.5 / PDT 2.1
这篇关于如何启用自动完成/语法高亮在Eclipse中的PHP核心功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文