Eclipse不推荐使用的代码突出显示php [英] Eclipse deprecated code highlighting php

查看:162
本文介绍了Eclipse不推荐使用的代码突出显示php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两台安装了相同Eclipse的不同PC。有人向我展示了不推荐使用的函数作为删除线,即 foo()。但是,在我的另一台PC上,这似乎不起作用。我尝试将偏好设置更改为无效。我还注意到,当我通过按住 ctrl 并单击该函数(在这种情况下 ereg_replace())没有 @deprecated 行或其他任何内容。我丢失了什么吗?

I have two different pcs with identical Eclipse installs on them. One shows me deprecated functions as a strikethrough ie foo(). However, on my other pc this doesn't seem to work. I've tried changing the preferences to no avail. Also I've noticed that when I show the function definition by holding ctrl and clicking on the function (in this case ereg_replace()) there is no @deprecated line or anything. Am I missing something?

我也在两台电脑上都使用了EclipseColorTheme插件;不确定是否会影响它。

Also I am using the EclipseColorTheme plugin on both pcs; not sure if that would affect it.

推荐答案

我知道这是一个旧线程,但万一其他人遇到这个问题:

I know this is an old thread, but in case anyone else comes across this:

首选项-> PHP->编辑器->语法着色。选择不推荐使用的成员。选择启用。它将允许您设置突出显示的格式(删除线)。

Preferences->PHP->Editor->Syntax Coloring. Select Deprecated members. Select enabled. It will allow you to format the highlighting (Strike Through).

这篇关于Eclipse不推荐使用的代码突出显示php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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