You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These patches are OPTIONAL, I don't currently use them because I use 8-bit color for my schemes. But if you use RGB you may notice that whitespace color is "inverted" so it makes sense for RGB.
Whitespace color is buggy in 1.14.15 (uses inverted def:Text color, RGB-BGR), so I've added whitespace color definition (adds def:Whitespace support in hrd schemes). It behaves well both with RGB and console colors but needs patching 2 repositories (Colorer-library and FarColorer) so it's somewhat complicated to merge.
Before (white dots all over the place):
After (actually usable):
Selection color is a global setting (Options-Colors-Editor), Far doesn't support transparent background at the moment:
I strongly vote against hardcoding whitespace as visible on selection only because I like to see if code has bad/mixed indentation right away. There should be 3 options: always visible, visible only on selection, and completely hidden. I.e as in sublime:
// Set to "none" to turn off drawing white space, "selection" to draw only the
// white space within the selection, and "all" to draw all white space
"draw_white_space": "selection",
Far Manager already has it in the UI, it allows three options [_] [?] [x] but it's apparently not implemented.
Using patched colorer you may specify the same background/foreground for the whitespace to appear on selection only. I am not sure about using "transparent" region ("default") from lib/default.hrc, looks like it's not supposed to be customizable.
As it was reopened, just wanted to say that I actually use this patch in 16-color mode, because the text color is too bright. See how it looks in 16 colors here https://github.com/joric/monokai.
These patches are OPTIONAL, I don't currently use them because I use 8-bit color for my schemes. But if you use RGB you may notice that whitespace color is "inverted" so it makes sense for RGB.
Whitespace color is buggy in 1.14.15 (uses inverted
def:Text
color, RGB-BGR), so I've added whitespace color definition (addsdef:Whitespace
support in hrd schemes). It behaves well both with RGB and console colors but needs patching 2 repositories (Colorer-library and FarColorer) so it's somewhat complicated to merge.Before (white dots all over the place):
After (actually usable):
Selection color is a global setting (Options-Colors-Editor), Far doesn't support transparent background at the moment:
I strongly vote against hardcoding whitespace as visible on selection only because I like to see if code has bad/mixed indentation right away. There should be 3 options: always visible, visible only on selection, and completely hidden. I.e as in sublime:
Far Manager already has it in the UI, it allows three options [_] [?] [x] but it's apparently not implemented.
Using patched colorer you may specify the same background/foreground for the whitespace to appear on selection only. I am not sure about using "transparent" region ("default") from lib/default.hrc, looks like it's not supposed to be customizable.
Patches
Patches below add whitespace (
def:Whitespace
) color support to HRC schemes. It works both for console and RGB schemes.You just use a color in hrd, like:
<assign name="def:Whitespace" fore="#75715e" back="#272822"/>
RGB<assign name="def:Whitespace" fore="#6" back="#8"/>
consoleColorer-library uses commit
587599f
as in 1.14.15, FarColorer is the latest master (I usede6089fd
).colorer.patch
FarColorer.patch
The text was updated successfully, but these errors were encountered: