문제

I'm creating a dark theme for a Scintilla based editor. I've managed to define all styles as I wanted, except for the line endings. In other words, despite all the text in my editor being showed on a dark background, at the end of each line there's a small white-filled rectangle.

I believe this rectangle is related to line-feed character, because even empty lines have it. But no other control characters are being displayed.

So, how can I get rid of this white rectangle?

I've tried to change the ControlCharSymbol to other values (under or above 0x20) and got no result.

Note: I've just noticed that the same occurs for white-spaces and tabs if they are set to be INVISIBLE. If they are set to be visible, Scintilla shows them as '.' and '--->' using the colors I've defined.

도움이 되었습니까?

해결책

If you've already set the background for all the styles defined by the lexer, you might also try setting the background for STYLE_DEFAULT.

If that doesn't work, the background can be set globally for all whitespace using SCI_SETWHITESPACEBACK.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top