Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to custom the backgroundColor for the url? #5

Open
Whirlwind opened this issue Oct 15, 2014 · 8 comments
Open

How to custom the backgroundColor for the url? #5

Whirlwind opened this issue Oct 15, 2014 · 8 comments

Comments

@Whirlwind
Copy link

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

@Whirlwind
Copy link
Author

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

@mikr
Copy link
Owner

mikr commented Oct 15, 2014

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).

@Whirlwind
Copy link
Author

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

@mikr
Copy link
Owner

mikr commented Oct 15, 2014

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

@Whirlwind
Copy link
Author

I run :

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

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

@mikr
Copy link
Owner

mikr commented Oct 15, 2014

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.

@Whirlwind
Copy link
Author

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

@mikr
Copy link
Owner

mikr commented Oct 15, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants