Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ahan.tm

macrumors regular
Original poster
Jun 26, 2011
141
0
Florida
Hi,

I am using Xcode 4.5.2, and just like that, all my syntax coloring disappeared. It was working just the other day, and today it is all gone :(:( !

Does anybody know of a good fix?

Thanks!
 
Have you tried restarting Xcode? I'm using an older version than you are but it behaves weird too sometimes (such as autocompletion randomly stopping). I just save my project, quit xcode and reopen it and it is just fine.
 
In the menu bar:

Xcode > Preferences > Fonts & Colors. What theme are you using? Try a different one. Low Key and Printing are both terrible themes for noticing syntax coloring. I like Default, personally.
 
Hi,

Thanks for your responses! I am using the Dusk theme. Normally, the methods are blue, but now they are white.

I also deleted the DervivedData folder, but it did not help.

Any other suggestions?

Thanks!:)
 
Hi,

Thanks for your responses! I am using the Dusk theme. Normally, the methods are blue, but now they are white.

I also deleted the DervivedData folder, but it did not help.

Any other suggestions?

Thanks!:)

In the window where you pick the theme, do the colors look correct there? Have you tried slightly modifying the theme and seeing what happens?
 
Hi,

My project does build normally and when I try changing the colors, it does not fix the problem.

I was reading online and saw some posts about a misplaced .pch file.

Anybody else had a similar experience??

Thanks! :)
 
Hi,

My project does build normally and when I try changing the colors, it does not fix the problem.

I was reading online and saw some posts about a misplaced .pch file.

Anybody else had a similar experience??

Thanks! :)

Hmm, a .pch may cause problems, but if it is misplaced, your project won't build at all. Have you modified your .pch in any way? If you have, check the order in which you are importing your headers.

Also check the order of compile sources. Generally, classes that are imported in other classes should be at the top.

But these problems occur rarely.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.