# I want to change the line numbers widget position from the left to the right

**URL:** https://discuss.codemirror.net/t/i-want-to-change-the-line-numbers-widget-position-from-the-left-to-the-right/7726
**Category:** v5
**Created:** [January 18, 2024, 1:32pm UTC](https://discuss.codemirror.net/t/i-want-to-change-the-line-numbers-widget-position-from-the-left-to-the-right/7726 "2024-01-18T13:32:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jaga](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jaga](https://discuss.codemirror.net/u/jaga)
#### Post date: [January 18, 2024, 1:32pm UTC](https://discuss.codemirror.net/t/i-want-to-change-the-line-numbers-widget-position-from-the-left-to-the-right/7726/1 "2024-01-18T13:32:26Z")

</div>

I am using the direction: “rtl”. I am able to type right to left. But I also want to move the line numbers widget to the right side. How to do that? If possible, share the code snippet for reference.

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)
#### Post date: [January 18, 2024, 1:54pm UTC](https://discuss.codemirror.net/t/i-want-to-change-the-line-numbers-widget-position-from-the-left-to-the-right/7726/2 "2024-01-18T13:54:54Z")

</div>

You’ll have to use version 6 for that. 5 doesn’t support it.

---

<div class="post-metadata">

### Author: ![jaga](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jaga](https://discuss.codemirror.net/u/jaga)
#### Post date: [January 18, 2024, 2:01pm UTC](https://discuss.codemirror.net/t/i-want-to-change-the-line-numbers-widget-position-from-the-left-to-the-right/7726/3 "2024-01-18T14:01:29Z")

</div>

Okay, Thanks.  
I will switch to version 6.
