Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highlighting the current line in TextMate 2

In TM 1.x, there was a preferences setting to enable the highlighting of the current line. This option seems to have disappeared in TM2. I assume there is some setting in tm_properties that can be set, but I cannot figure it out. I've tried setting lineHighlight to be a color, but this does not work. Has anyone figured this out?

like image 647
Chris Fonnesbeck Avatar asked May 22 '12 14:05

Chris Fonnesbeck


2 Answers

It is not possible in TM2 yet, but there is an open ticket on github regarding this issue. The lead developer is assigned to it, however it doesn't seem to have that high priority.

Eventually you should be able to do like this:

        settings = {
            lineHighlight = '#FF483E';
        };

This is from the Monokai Theme.

like image 98
Michael Avatar answered Sep 17 '22 12:09

Michael


It's possible to set the colour for the current line in the line number and folding column on the left side of the window. Add the following after the first { in the beginning of the theme:

gutterSettings = {
        foreground = '#BBBBBB';
        background = '#333333';
        divider = '#BBBBBB';
        selectionBackground = '#FF8800';
        selectionForeground = '#000000';
    };
like image 21
Jolbas Avatar answered Sep 19 '22 12:09

Jolbas