Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS Syntax Coloring Not Working in Xcode 4.4.1

Tags:

css

xcode

I recently upgraded Xcode to version 4.4.1, and now, CSS files don't take on the default syntax coloring associated with CSS files. A dash appears next to the "None" option under Editor | Syntax coloring. I have to manually check off the CSS option under Syntax coloring to associate colored syntax with CSS.

A last note: I don't use Xcode as an IDE, I use it as a text editor. All other languages I work in take on syntax coloring without a problem; this issue applies only to CSS.

like image 483
user1681300 Avatar asked Sep 24 '12 14:09

user1681300


1 Answers

I'm using Xcode the same way and I have it installed on two systems: Lion and Mountain Lion. The program's version is equally (4.6). So I found solution, especially this:

First, Make sure Xcode is closed, then turn up the indexer warning message level by entering in the Terminal: defaults write com.apple.dt.Xcode IDEIndexingClangInvocationLogLevel 3

And the interesting thing is that those solution completely solved my problem in Mountain Lion but didn't help in Lion.

like image 85
Levy Avatar answered Nov 18 '22 21:11

Levy