"Thomas Singer" wrote
:
> >I'd like [Highlight
usage] to work like the "Highlight" button in the Google
> >toolbar : each word is highlighted in a different color.
>
> But this looks like a baby's toys box. Ok, I don't know the Google toolbar,
> but I know the search function in Google groups and this looks terrible and
> is hard to read.
> >toolbar : each word is highlighted in a different color.
>
> But this looks like a baby's toys box. Ok, I don't know the Google toolbar,
> but I know the search function in Google groups and this looks terrible and
> is hard to read.
Thomas,
Let's say there is a problem in the code
below, and you suspect it's because somewhere you are mis-using one string for
another.
Please, tell me which way in the most
helpfull in locating the problem.
(Just imagine you are debugging a 60 line
method that you didn't write, that looks like..)
1
color for all
---------------
String before = ...
String after
= ...
if (after.equals(before) ||
before.equals
("true") ) {
...
}
else if (after.equals("false")
) {
...
}
else if (before.equals("yellow")
|| "red".equals(after))
{
...
}
1
color per item
----------------
String before = ...
String after =
...
if (after.equals(before) ||
before.equals
("true") ) {
...
}
else if (after.equals("false")
) {
...
}
else if (before.equals("yellow")
|| "red".equals(after))
{
...
}
PS:
You should really try the Google
toolbar.
It such a time saver, it's the only reason
that's keeping me from leaving windows.
