# Text color not kept when pasting

**URL:** <https://forums.ankiweb.net/t/text-color-not-kept-when-pasting/43542>\
**Category:** Help\
**Created:** [April 13, 2024, 3:39am UTC](https://forums.ankiweb.net/t/text-color-not-kept-when-pasting/43542 "2024-04-13T03:39:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chozen](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@chozen](https://forums.ankiweb.net/u/chozen)\
**Post date:** [April 13, 2024, 3:39am UTC](https://forums.ankiweb.net/t/text-color-not-kept-when-pasting/43542/1 "2024-04-13T03:39:13Z")

</div>

When I paste a text into Anki that color it does not keep that color although in the docs it says that it should.

> Paste without Shift strips formatting  
> By default, formatting like bold and colors are kept when pasting, unless the Shift key is held down. This option reverses the behaviour.

As you can see in the screenshot it keeps bold and font size, but not color.

 ![Screenshot from 2024-04-13 06-37-00](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/0/f/0fc4e56c059daeaca8fb58d6e0e2fd44bad96902.png)  
 ![Screenshot from 2024-04-13 06-37-37](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/4/0/405c5db68275bc211b3b29622a0642607a314cac.png)

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [April 13, 2024, 6:32am UTC](https://forums.ankiweb.net/t/text-color-not-kept-when-pasting/43542/2 "2024-04-13T06:32:20Z")

</div>

1. Did the portion that you copied _actually_ contain that color, or did that text _inherit_ that color from some external (to it) styling? Anki can only use what you actually paste.
2. I can see that you must have add-ons enabled right now. Are any of them styling/formatting related? Do you see the same behavior when they are disabled?

---

<div class="post-metadata">

**Author:** ![chozen](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@chozen](https://forums.ankiweb.net/u/chozen)\
**Post date:** [April 13, 2024, 7:14am UTC](https://forums.ankiweb.net/t/text-color-not-kept-when-pasting/43542/3 "2024-04-13T07:14:53Z")

</div>

1. I’m not sure, it was a screenshot from some website.
2. Yes, one is for highlighting syntax. But when I disabled them and there was no difference.

I think I figured out what the problem is. I wanted to copy a code snippet that has syntax highlighting, but that information cannot be copied as it’s displayed in an online code editor and is not a “regular” text on the website. I tried to paste same highlighted code into Libre, and it also did not work, so, it’s not an Anki problem.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 13, 2024, 7:15am UTC](https://forums.ankiweb.net/t/text-color-not-kept-when-pasting/43542/4 "2024-05-13T07:15:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
