问题
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?
Also I am using the EclipseColorTheme plugin on both pcs; not sure if that would affect it.
回答1:
I know this is an old thread, but in case anyone else comes across this:
Preferences->PHP->Editor->Syntax Coloring. Select Deprecated members. Select enabled. It will allow you to format the highlighting (Strike Through).
来源:https://stackoverflow.com/questions/13548522/eclipse-deprecated-code-highlighting-php