Is there any word on this bug? Does anyone know how to fix the current syntax highlighting theme to fix this problem? Or is it a bug with ST itself?
Highlight current line
Iāve noticed that this bug isnāt fixed when in distraction free mode (which, ironically, is kinda distracting )
I believe the change that fixed this outside of distraction free mode was:
āLine highlights are drawn in front of text background highlights, and alpha channels are supportedā
Highlighting the current line appears to be broken in 2181. Iāve tried a lot of different themes, and either none of the themes support it, or the feature isnāt working at the moment. Iād edit the themes, but I canāt figure out where theyāre all stored on the file system.
Hi, I ended here looking for some themes to customize ST2
For having line highlight (option I missed too and activated it) just add this line to your settings:
"highlight_line": true,
##########
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.
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.
Gutter Active Line Foreground Color
Hi, is it possible to highlight the number directly? As shown in VIM, below:
I donāt know of a way to do this, so Iāll say: no, itās still not possible.
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.
Gutter Active Line Foreground Color