Sublime Forum

Highlight current line

#21

Hi, I ended here looking for some themes to customize ST2 :smile:
For having line highlight (option I missed too and activated it) just add this line to your settings:

"highlight_line": true,
0 Likes

#22

##########
Workaround for the no current line highlighting
##########

I fought w/ this for awhile, and it appears that the current line highlighting only works if you have not disabled the gutter.
// Set to false to hide the gutter altogether
ā€œgutterā€: true,

Hope that helps track down the bug, since I would like to remove the gutter, personally.

0 Likes

#23

Hi

is it possible to only highlight the line for certain type of files ?

Thanks

0 Likes

#24

Yes. Open the file type you want line highlighting for (or just open aa new file and set the syntax manually). Then go to ā€œPreferences > Settings - more > syntax-specific - userā€ and insert the highlight_line setting there.

0 Likes

Gutter Active Line Foreground Color
#25

Hi, is it possible to highlight the number directly? As shown in VIM, below:

3 Likes

#26

how to open the file you show above

0 Likes

#27

Any luck figuring out how to highlight the line number text?

0 Likes

#28

I donā€™t know of a way to do this, so Iā€™ll say: no, itā€™s still not possible.

0 Likes

#29

Bummer, thanks anyways.

0 Likes

#30

Well, I hereby request that this ā€œbugā€ be un-ā€œfixedā€. Or, perhaps more realistically, become subject to a preferences setting that re-enables the old behavior yā€™all describe.

See, I have this here snazzy highlighting for Knockout html files. Can you guess what happens when lineHighlight is applied?

Thatā€™s right: EVIL.

So, a preference to re-enable the old behavior would be appreciated. Really nice, though, would be if I could specify something like the following in my color scheme file:

<key>scope</key>
<string>scope.with.background.color, lineHighlight scope.with.background.color</string>

Which would explicitly tell Sublime Text to ignore lineHighlight in favor of the scopeā€™s normal background color. Alternatively, you could put 'lineHighlight scope.with.background.color' in a separate scope block, where you could control exactly how the scopeā€™s color changes in response to the caret being on the same line.

0 Likes

Gutter Active Line Foreground Color