Dear Geany devs,
I'd like to display line endings, but I find the current [LF] display rather ugly. Can this be replaced by the same character as the 'Line Wrapping' one?
I also found a small display bug in the 'Line Wrapping' function: the first character on a new line moves the 'long line marker' one char to the right.
| This line | -is wrapped | <- one char shifted to the right |
Cheers!
-H-
On Thu, 08 May 2008 14:14:28 +0200 Harold Aling h.aling@home.nl wrote:
Dear Geany devs,
I'd like to display line endings, but I find the current [LF] display rather ugly. Can this be replaced by the same character as the 'Line Wrapping' one?
I don't think Scintilla supports this. I wanted to change their colour, but AFAICT it doesn't seem to support that either.
I also found a small display bug in the 'Line Wrapping' function: the first character on a new line moves the 'long line marker' one char to the right.
|
This line | -is wrapped | <- one char shifted to the right |
This is not a bug but so the user can see the same width for wrapped lines as normal lines.
Regards, Nick
I wanted to change their colour, but AFAICT it doesn't seem to support that either.
I don't know Scintilla that well, but the color can be changed in some instances in SciTE, implying that Scintilla is capable of doing it. It may be up to the lexer to determine whether line breaks belong to whitespace or to some other style category. For example, when I'm editing Python in SciTE, I can modify the color of all line breaks using the whitespace color setting. But in C++, line breaks in comment or precompiler directive lines get colored as comments or precompiler directives, respectively, while other line breaks get colored as whitespace.
John
On Thu, 8 May 2008 21:05:57 -0400, "John Yeung" gallium.arsenide@gmail.com wrote:
I wanted to change their colour, but AFAICT it doesn't seem to support that either.
I don't know Scintilla that well, but the color can be changed in some instances in SciTE, implying that Scintilla is capable of doing it. It may be up to the lexer to determine whether line breaks belong to whitespace or to some other style category. For example, when I'm editing Python in SciTE, I can modify the color of all line breaks using the whitespace color setting. But in C++, line breaks in comment or precompiler directive lines get colored as comments or precompiler directives, respectively, while other line breaks get colored as whitespace.
Indeed. For Geany it's the same basically. You can change the background colour of the line ending character boxes by changing the foreground colour in the "default" style in filetypes.python. For C, changing the "default" style in filetypes.c would only change the background colour of the boxes on lines where the last character has the style whitespace (as John said). If the last character of the line had a different style, e.g. for comment then this style's foreground colour is used for the box' background colour.
But as John also said, this is a Scintilla bug/feature/whatever.
Regards, Enrico