String syntax coloring is a mess
String syntax coloring is a mess
- Subject: String syntax coloring is a mess
- From: kwiley <email@hidden>
- Date: Fri, 7 Dec 2007 10:59:23 -0800
I've had the following problem with Xcode for years. CodeWarrior
never had this problem. I have never complained about it because I
was hoping Xcode 3 would fix it, but I just got Leopard and Xcode and
it's still there. Erg!
The problem is that when opening or closing string constants with a
double quote character, the syntax coloring often gets screwed up.
The most common symptom is that code below the string constant is all
turned string color when the string is opened (fair enough), but is
left string colored with the string is closed. In my experience, this
problem is solved by paging up or down far enough to push the
miscolored text off the screen, and then paging back again...what a
nuisance. More seriously, if your code is too short to page up or
down enough to remove the incorrectly colored code from the screen,
then you simply cannot get the color right again without closing and
reopening the file. Another fix is to type two double quotes in a
row, thus opening and closing a new empty string. Sometimes this
fixes the coloring...sometimes not. Then I have to delete the useless
empty string of course.
Am I the only person who has ever noticed this? If not, why hasn't it
been solved yet? It's been around for years. One easy solution would
be to provide a command to force Xcode to immediately reevaluate the
syntax coloring and clean up the screen...although CodeWarrior simply
didn't have this problem. I explored the menus and didn't find
anything to do this. Lastly, I am open to recommendations as to how
to deal with this problem (short of assigning a string color that
matches the default text color, that suggestion is obvious I
suppose). Any ideas?
Thanks.
________________________________________________________________________
Keith Wiley email@hidden http://www.cs.unm.edu/~kwiley
"Luminous beings are we, not this crude matter."
-- Yoda
________________________________________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden