I went a bit further, and I found that Xcode 3.x hides its syntax highlighting rules in xclangspec files , so editing the corresponding file will allow you to change the rules to the extent.
Files are stored here:
/Developer/Library/PrivateFrameworks/XcodeEdit.framework/Versions/A/Resources
In this directory, I opened BaseSupport.xclangspec and found a line identifying the URL protocol:
Syntax = { StartChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; Chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789;/:@&=+$,-_.!~*'()%#"; Match = "^(acap|afp|afs|cid|data|fax|feed|file|ftp|go|gopher|http|https|imap|ldap|mailserver|mid|modem|news|nntp|opaquelocktoken|pop|prospero|rdar|rtsp|service|sip|soap\\.beep|soap\\.beeps|tel|telnet|tip|tn3270|urn|vemmi|wais|z39\\.50r|z39\\.50s)://([a-zA-Z0-9\\-_.]+/)?[a-zA-Z0-9;/?:@\\&=+$,\\-_.!~*'()%#]+$", "^(mailto|im):[a-zA-Z0-9\\-_] +@ [a-zA-Z0-9\\-_\\.!%]+$", "^radar:[a-zA-Z0-9;/?:@\\&=+$,\\-_.!~*'()%#]+$", ); */ Type = "xcode.syntax.url"; };
and changed the line for Match = to read:
Match = ();
This excludes URL mapping, but not mailto matching (which is in a separate rule below the first). I leave this as an exercise for the reader; -)
Obviously, I could be more selective, and I suspect that changing the type string would also be sufficient. In addition, future versions of Xcode are likely to overwrite this change, so I will have to examine the changes to my own copy of BaseSupport.xclangspec and see if it works in ~ / Library / Application Support.
source share