Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one change the color for text highlighting in Xcode 4 for warnings and errors? [duplicate]

Possible Duplicate:
Fix for Xcode's indiscernible highlighting of inline errors?

Does anyone know how to change the color of the in-line highlighting for warnings and errors in Xcode 4? With almost every theme, the yellow warning highlight makes the underlying code impossible to read. Example picture

like image 903
Jameson Avatar asked Sep 27 '11 19:09

Jameson


2 Answers

Just came across this, which seems to be able to modify some of Xcode's behaviors by creating some sort of plugin. Maybe one can be developed to change text highlight color. http:/github.com/davekeck/Xcode-4-Fixins

Update:

I've finally managed to implement a Xcode "fixin" to do it.
text highlight for dark backgrounds

You just need to open the project and build it. Doing so will install an Xcode plugin called "XCFixin_CustomizeWarningErrorHighlights.xcplugin" into ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins. You can of course customize the colors to your liking.

Get the "fixin" here:

https://github.com/armadillu/Xcode-4-Fixins/tree/master/XCFixin_CustomizeWarningErrorHighlights

like image 137
amadillu Avatar answered Sep 21 '22 12:09

amadillu


There is no (official) way to do this and I believe that it's like that for a reason... We all know how much attention to details and UI paradigms Apple is paying. An error colored in Green for example would break that paradigm and possibly confuse the user. That being said, I think that a (somewhat) solution would be instead of recoloring the warning/error bubbles, to recolor the theme in such a way that every color would make a strong contrast with red/yellow (ie avoid reddish/yellowish tones) tints.

like image 37
Alladinian Avatar answered Sep 20 '22 12:09

Alladinian