如何启用自动完成/语法高亮在Eclipse中的PHP核心功能? [英] How to enable autocomplete/syntax-highlight for PHP core functions in Eclipse?

查看:124
本文介绍了如何启用自动完成/语法高亮在Eclipse中的PHP核心功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了很多,检查多次neccesary步骤,但它仍然不起作用。

我的环境是:


  1. 有关PHP开发包最新的Eclipse


  2. 项目是newed,而不是直接从SVN检查


  3. 的.project有行


     <自然与GT; org.eclipse.php.core.PHPNature< /自然与GT;



  4. .buildpath有行


     < buildpathentry样=CON路径=org.eclipse.php.core.LANGUAGE/>



  5. .settings / org.eclipse.core.resources。preFS
    有行


     的include_path = 0; /项目名称



  6. 文件确保在PHP编辑器中打开


东西如下:


  1. PHP核心功能认定中显示,当鼠标移到和Ctrl +单击将打开它的定义文件,但输入'改编'什么也不会发生,而阵列功能的列表有望

  2. 自动完成并用于内部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 :

  1. Latest eclipse for PHP developer package

  2. Project is newed, not check out directly from SVN

  3. .project has a line

    <nature>org.eclipse.php.core.PHPNature</nature>
    

  4. .buildpath has a line

    <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
    

  5. .settings/org.eclipse.core.resources.prefs has a line

    include_path=0;/projectname
    

  6. file ensured opened in PHP Editor

Something works:

  1. 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
  2. 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屋!

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