# I have a question about this ::selection about the v5 version

**URL:** https://discuss.codemirror.net/t/i-have-a-question-about-this-selection-about-the-v5-version/8152
**Category:** v5
**Created:** [April 20, 2024, 4:02pm UTC](https://discuss.codemirror.net/t/i-have-a-question-about-this-selection-about-the-v5-version/8152 "2024-04-20T16:02:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Halecoder](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/halecoder/32/4379_2.png) [@Halecoder](https://discuss.codemirror.net/u/Halecoder)
#### Post date: [April 20, 2024, 4:02pm UTC](https://discuss.codemirror.net/t/i-have-a-question-about-this-selection-about-the-v5-version/8152/1 "2024-04-20T16:02:26Z")

</div>

I have `mark-selection` and `active-line` plug-ins turned on, and when I double-click, it will not only select all the text, but also the rest of the positions, how do I close this background in the green box?

 ![Snipaste_2024-04-20_23-56-51](https://discuss.codemirror.net/uploads/default/original/2X/2/2c3df2599b67e30936aa539bd8ef145a00ddfb37.jpeg)

The demo is as follows, I need to remove this background that is not red

![GIF 2024-4-21 0-04-45](https://discuss.codemirror.net/uploads/default/original/2X/f/f040a4e7a4ff04bd3887db567388ac04a56d65c6.gif)

Thank you for your busy reply and much appreciated 🫡

---

<div class="post-metadata">

### Author: ![Halecoder](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/halecoder/32/4379_2.png) [@Halecoder](https://discuss.codemirror.net/u/Halecoder)
#### Post date: [April 21, 2024, 2:14am UTC](https://discuss.codemirror.net/t/i-have-a-question-about-this-selection-about-the-v5-version/8152/2 "2024-04-21T02:14:16Z")

</div>

Ok, looked at the style given by the source code on github and I fixed it

[github-markselection](https://github.com/codemirror/codemirror5/blob/master/demo/markselection.html)

```css
:deep().CodeMirror-selected{
  background-color: rgb(var(--primary-6));
}
:deep().CodeMirror-selectedtext{
  color: rgb(var(--my-bg-color));
}

```
