Setting the background color for inivisible whitespace

68 views
Skip to first unread message

Anton Shepelev

unread,
Oct 15, 2024, 6:11:15 PM10/15/24
to scite-i...@googlegroups.com
Hello, all

I need help tweaking SciTE that is shipped with the Lua
distribution preconfigured for that language. Whatever I
do, I cannot set the background of the invisilbe (normal)
whitespace. I have successfully set the background for all
text via the `back' subvalue of font.base in my
SciTEUser.properties, but the whitespaces remains stark
black.

By way of experiment, I have tried all of the following, but
to no avail:
font.base=back:#202020
style.*.32=$(font.base)
style.*.33=$(font.base)
style.*.34=$(font.base)
style.*.35=$(font.base)
style.*.36=$(font.base)
style.*.37=$(font.base)
style.*.*=$(font.base)
whitespace.fore=#202020
whitespace.back=#202020

The whitespace background is #000000. What else can I try?
Can the Lua configuaration in SciTEGlobal.properties be the
culprit? Here it is:

<https://pastebin.com/raw/v8wCzaZv>?

Neil Hodgson

unread,
Oct 17, 2024, 8:28:59 PM10/17/24
to scite-interest
do, I cannot set the background of the invisilbe (normal)
whitespace.

This isn't separately configurable. Perhaps you could turn on visible whitespace and make the foreground inconspicuous.

Neil

Anton Shepelev

unread,
Oct 21, 2024, 4:26:01 AM10/21/24
to scite-i...@googlegroups.com
Neil Hodgson:

> Anton Shepelev:
Perhaps you did not uderstand: I want to configure /the
same/ background color for whitespace and normal text, so
that whitespace shall not stand out. I want no separate
configuration, but a uniform background in the editor
window. Here is what I have now:

<https://files.catbox.moe/8xagh6.png>

P.S.: Beware that your message was not plain-text e-mail,
but a multipart one with text/plain and text/html.

Neil Hodgson

unread,
Oct 21, 2024, 5:23:25 PM10/21/24
to scite-interest
Anton Shepelev:

Perhaps you did not uderstand: I want to configure /the
same/ background color for whitespace and normal text, so
that whitespace shall not stand out. I want no separate
configuration, but a uniform background in the editor
window. Here is what I have now:

<https://files.catbox.moe/8xagh6.png>

Due to the coloured numbers, that appears to be being styled for a programming language. You should check the properties file for the language you have chosen as the default, commonly by setting default.file.ext, then look at the individual styles. Whitespace in most text (but not inside comments or quoted literals) is generally in style 0.

Neil

Anton Shepelev

unread,
Nov 7, 2024, 5:43:54 PM11/7/24
to scite-i...@googlegroups.com
Neil Hodgson:

> Due to the coloured numbers, that appears to be being
> styled for a programming language. You should check the
> properties file for the language you have chosen as the
> default, commonly by setting default.file.ext, then look
> at the individual styles. Whitespace in most text (but not
> inside comments or quoted literals) is generally in style
> 0.

Thanks you. After digging around a bit, I have succeeded in
settings the global background, in my SciTEUser.properties:

stdstyle.bg=back:#202020

Reply all
Reply to author
Forward
0 new messages