Sublime Forum

How to change only the color of the current line in Monokai theme

#1

I use the default Monokai theme.
I’m happy with everything, but I just want to change the background color of the selected line.
I have tried several things. By creating a file “…\AppData\Roaming\Sublime Text 3\Packages\User\Monokai.sublime-color-scheme”, everything goes WHITE.

How to change only the color of the current line in Monokai theme?

0 Likes

#2

The override file in the User folder is the correct approach. Are you sure that your file is valid JSON?

{
    "globals":  {
        "line_highlight": "magenta",
    }
}

And you need "highlight_line": true in your settings for it to work, of course.

1 Like

#3

It worked.
Thank you!

0 Likes