PHP Eclipse 语法颜色更改

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2196316/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:23:16  来源:igfitidea点击:

PHP Eclipse syntax color change

phpeclipse

提问by Murvinlai

How can I change the PHP variables color in Eclipse? It is very light blue/gray by default. I go to preferences and click on all the editors but doesn't seem it is there.

如何在 Eclipse 中更改 PHP 变量颜色?默认情况下它是非常浅的蓝色/灰色。我转到首选项并单击所有编辑器,但似乎没有。

By the way, I install the Eclipse 3.5.1 with PHPEclipse 1.2.x plugin.

顺便说一下,我安装了带有 PHPEclipse 1.2.x 插件的 Eclipse 3.5.1。

采纳答案by Anthony Forloney

I am using Eclipse IDE for PHP Developers version 1.2.x and my path is as follows,

我使用 Eclipse IDE for PHP Developers 1.2.x 版,我的路径如下,

Preferences > PHP > Editor > Syntax Coloring > Variable

Try to download the PHP Development Tools (PDT)instead of PHPEclipse

尝试下载PHP Development Tools (PDT)而不是 PHPEclipse

回答by Mustafa Kachwala

I have eclipse Helios running with 'PHPEclipse' plugin. I was able to resolve similar issue by making sure PHP files open with 'PHP Editor'.

我有运行“PHPEclipse”插件的 Eclipse Helios。通过确保使用“PHP 编辑器”打开 PHP 文件,我能够解决类似的问题。

  1. Right-click on the file, select 'open with' -> 'Other'.
  2. Choose 'PHP Editor'.
  1. 右键单击该文件,选择“打开方式”->“其他”。
  2. 选择“PHP 编辑器”。

You can set 'syntax coloring preferences' at Window -> Preferences -> PHPEclipse -> PHP -> Tab syntax

您可以在 Window -> Preferences -> PHPEclipse -> PHP -> Tab 语法中设置“语法着色首选项”