Set background color paragraph

Post Reply
drit
Posts: 2
Joined: 17.04.2025 12:02

Set background color paragraph

Post by drit »

Is it possible to also set the background color of the paragraph of a text file where caret is positioned?
So it is already marked (and can be changed) with "editor, gutter BG, lines with carets" color setting, but when i also want a different color for it in editor i can not find how to do it.
Attached screenshot of Cudatext and as a reference notepad++ in which this behavior exists.
Attachments
Screen-2025-04-17_14-05-56.jpg
Screen-2025-04-17_14-10-03.jpg
main Alexey
Posts: 2546
Joined: 25.08.2021 18:15

Re: Set background color paragraph

Post by main Alexey »

Try these options

"show_cur_line": true,
"show_cur_line_mininal": false,

It uses not separate color for paragraph, but the same color as for current line.
drit
Posts: 2
Joined: 17.04.2025 12:02

Re: Set background color paragraph

Post by drit »

Thanks! This does indeed give the same functionality as notepad+ example.
Will loose the current line, but can live with that :)
Maybe in future both options (so color set for cur line and different color for whole paragraph).
main Alexey
Posts: 2546
Joined: 25.08.2021 18:15

Re: Set background color paragraph

Post by main Alexey »

Maybe in future I will add it, if several users will ask for it, but no plans. Maybe a separate theme-color with default None, so by default it will work as today.
main Alexey
Posts: 2546
Joined: 25.08.2021 18:15

Re: Set background color paragraph

Post by main Alexey »

it was implemented today. new UI-theme color was added.
will be in the next update.
from history.txt:

+ add: new UI-theme color: "editor, current line BG, other wrapped parts" - it's used when "show_cur_line":true & "show_cur_line_minimal":false, and caret is on a long wrapped line; if this color is 'None' (this is default), program will work like before using "current line BG" color.
Post Reply