[R-SIG-Mac] Pasting Code in Editor has Wrong Colors
Simon Urbanek
simon.urbanek at r-project.org
Sun Mar 6 18:47:10 CET 2016
On Mar 4, 2016, at 12:10 PM, Brandon Hurr <brandon.hurr at gmail.com> wrote:
> As mentioned in the exchange with Frederico, I've been using Solarized Dark
> colors for the console and editor to hopefully make long days of coding
> easier on my eyes.
>
> The issue is when I paste code from a webpage or email it appears to revert
> to the original colors interspersed with the new background color. See this
> image for an example: http://i.imgur.com/4n32Hx9.png
>
> If I save the script and reload it, everything looks the way it should.
> When the same code is pasted into R-GUI, everything is as it should be.
>
The paste option supports pasting attributes, so I wonder what is your source. If the source includes colors, the the source colors override your GUI setting - that is a standard Mac behavior (for better or worse). If you don't want that to happen, use "Paste as plain text" instead (<cmd><alt><V>)
Cheers,
Simon
> Thanks,
> Brandon
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
More information about the R-SIG-Mac
mailing list