8

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.

4

1 回答 1

2

我以同样的方式使用 Xcode,并将它安装在两个系统上:Lion 和 Mountain Lion。该程序的版本同样是(4.6)。所以我找到了解决方案,尤其是这个:

首先,确保 Xcode 已关闭,然后通过在终端中输入来调高索引器警告消息级别: defaults write com.apple.dt.Xcode IDEIndexingClangInvocationLogLevel 3

有趣的是,这些解决方案完全解决了我在 Mountain Lion 中的问题,但对 Lion 没有帮助。

于 2013-02-28T17:04:42.897 回答