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?
Asked
Active
Viewed 2,928 times
2 Answers
6
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.

Michael
- 2,631
- 2
- 24
- 40
-
github issues have been closed for the project, for more info about this see: https://github.com/textmate/textmate/wiki/Issue-Tracker – Graham P Heath Jan 13 '15 at 21:02
-
Unfortunately there is no effect for any value I set for this setting. Could it be a bug or may be there is some other setting in the preferences enables highlighting a current line? – adnako Apr 12 '16 at 07:36
1
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';
};

Jolbas
- 757
- 5
- 15