XcAddedMarkup icon indicating copy to clipboard operation
XcAddedMarkup copied to clipboard

How to custom the backgroundColor for the url?

Open Whirlwind opened this issue 11 years ago • 8 comments

I use the XCodeColors and I want to change the color for the url title. I test the color will not be changed.

Whirlwind avatar Oct 15 '14 09:10 Whirlwind

It seem to it is not work: defaults write com.apple.dt.Xcode XcAddedMarkupAnsiColorsDisabled -bool yes in my xcode6

Whirlwind avatar Oct 15 '14 10:10 Whirlwind

There is no markup syntax to set a custom background color for links.

If you would be satisfied with another constant background color, search for "value:[NSColor whiteColor]" in the sources and replace whiteColor with something else and recompile.

When your goal is to make the links stand out visually you could surround the links with colorful Emoji characters (http://en.wikipedia.org/wiki/Emoji).

mikr avatar Oct 15 '14 12:10 mikr

I want to use the package manager to install it, so could you add the feature to support it?

Whirlwind avatar Oct 15 '14 12:10 Whirlwind

I added the feature by no longer setting the background color to white by default. To restore the old behavior, run: defaults write com.apple.dt.Xcode XcAddedMarkupCustomLinkBackgroundDisabled -bool YES

mikr avatar Oct 15 '14 14:10 mikr

I run :

defaults write com.apple.dt.Xcode XcAddedMarkupAnsiColorsDisabled -bool yes

can It disable the title color? It does not work.

Whirlwind avatar Oct 15 '14 14:10 Whirlwind

First you have to recompile and install the current version of XcAddedMarkup or wait until it shows up in your package manager.

Then you just use the XcodeColors syntax to set the background color exactly like for normal text around the link.

mikr avatar Oct 15 '14 14:10 mikr

XcAddedMarkupAnsiColorsDisabled! NOT XcAddedMarkupCustomLinkBackgroundDisabled! I want to set the text color, too. :)

Whirlwind avatar Oct 15 '14 14:10 Whirlwind

You can set the foreground and background of normal text but only the background color of a link. You cannot set the foreground color of a link which is always blue. I cannot change this.

mikr avatar Oct 15 '14 14:10 mikr