2

In Xcode 3.2.1 I have this problem where it stops highlighting Objects in purple, and such. For example:

alt text

In that example, NSAutoreleasePool, pool, img, size, width and height should be highlighted, however, they are not. Here is a screenshot of what that looks like.

Anyone know how to fix this?

Edit: Also, code sense isn't showing correct options.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
skylerl
  • 4,030
  • 12
  • 41
  • 60
  • Have you imported the `` header (not that I'm sure it makes any difference...)? – dreamlax Feb 15 '10 at 04:00
  • That shouldn't be necessary, on top of that I'm using Cocoa Touch. – skylerl Feb 15 '10 at 04:05
  • possible duplicate of [Xcode: code loses syntax coloring ](http://stackoverflow.com/questions/2138047/xcode-code-loses-syntax-coloring) – apaderno Aug 12 '10 at 13:32
  • Glad you solved your problem. I had similar issues, and have documented a general solution (that doesn't involve continually restarting Xcode!)... See my answer here: http://stackoverflow.com/a/10245076/123632 – Ashley Mills Apr 21 '12 at 12:10

2 Answers2

2

Xcode is often glitchy for me in similar ways. Restarting xcode often clears up the issue. Also, sometimes a missing semi-colon or curly brace will keep codeSense and highlighting from working as you want it to. Try Opt-B (build) to see if you have any errors that could be causing this.

hqrsie
  • 413
  • 5
  • 10
1

I noticed that opening projects from the XCode welcome screen causes this issue. If I dismis the welcome screen and then go file open (or file open recent) and open the project that way the syntax highlighting works

Pankani
  • 11
  • 1