Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change a theme to set a background color to the current line in TextMate 2?

In TextMate 1, we could use the Preferences dialog for this. In TextMate 2, at least at this point, I gather we have to use Edit Bundles, and edit the source of a specific theme. But what is the syntax to set a background color to the current line (i.e. the line on which the cursor is)?

like image 247
avernet Avatar asked Oct 10 '22 01:10

avernet


1 Answers

Open up the bundle editor and then go to Theme's (or whatever theme you might have picked under View > Theme (Solarized and SubtleGradient have their own bundle).

then it is a simple JSON document for editing your theme.

Edit the "lineHighlight" property and set it to whatever you want your highlighted line to be in HEX.

like image 56
Steve Ross Avatar answered Oct 13 '22 11:10

Steve Ross