This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 215172 - Can not change EOL (line break, carret) color from Fonts&Colors tab
Summary: Can not change EOL (line break, carret) color from Fonts&Colors tab
Status: CLOSED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.2
Hardware: PC Windows XP
: P2 normal with 23 votes (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-04 12:53 UTC by Dmitry.Sokolov
Modified: 2018-11-14 16:20 UTC (History)
10 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry.Sokolov 2012-07-04 12:53:14 UTC
1) Open Tools -> Options -> Fonts & Colors

2) Select Category: Whitespace

3) Change Foreground: to custom color


in NB 7.1.x all whitespace chars (including EOL) change color

in NB 7.2 rc1 whitespace chars except EOL change color, and no way to change color of EOL symbol
Comment 1 Jiri Prox 2012-07-09 09:36:11 UTC
Reproducible
This is regression to 7.1 - may be good candidate for patch
Comment 2 Miloslav Metelka 2012-09-18 21:13:11 UTC
This is not in fact a regression this is caused by a requested change - issue #205829.
Do I understand that you have "Show non-printable characters" option turned on? I think that the best solution in this case would be to introduce an "EOL" item or "Non-printable Characters" item in the tools->options->fonts&colors->highlighting tab to deal with this. Adding psomol to cc to help us to decide.
Comment 3 pjdm 2012-09-19 08:42:56 UTC
Issue #205829 was my bug, and I'm sure I didn't request the current situation.

> Do I understand that you have "Show non-printable characters" option turned on?

Yes.

For comparison, Eclipse allows separate visibility for each of space, ideographic space, tab, carriage return, line feed, in leading, enclosed, or trailing regions of a line of text, with a selected transparency level. This seems rather over the top.

It would be good to be able to separately configure syntax colours/effects for the two categories of (space, tab) and (carriage return, line feed). (I'd like to see light grey spaces/tabs but no EOL, for instance.) I'd expect to see the EOL item in the Syntax tab rather than the Highlighting tab, though.

(The View menu refers to "Non-printable characters", but the Syntax tab refers to "Whitespace". Are they referring to two different things, or the same thing with different names?)
Comment 4 Petr Somol 2012-09-19 11:47:45 UTC
The main problem as I see it now is that currently there is no way of changing the appearance of the end-of-line symbol (the reversed P) if View->Show Non-Printable Characters is on. The simplest meaningful solution in my view is to let the settings in Fonts&Colors->Syntax->Whitespace affect also this symbol if it is displayed. Other possibly more fine-grained options can be supplied as enhancements in future.
Comment 5 Miloslav Metelka 2012-09-19 11:50:54 UTC
The only problem with category in tools->options->fonts&colors->Syntax is that it allows to change a font as well which generally requires a more expensive treatment (view rebuilds if such highlighting layer changes in contrast to repaint only in case of highlight only category). But generally that's not a big issue. An advantage of Syntax category is a possibility of actually using a different font e.g. have the EOL char smaller (I think someone opted for it already).
Since there was a request for displaying EOL without whitespace coloring I think that in the end we still need more coloring categories.
I personally vote for having the following extra categories in Syntax combo:

Indent Whitespace
Trailing Whitespace
EOL

Changing the issue type to task hopefully we can find a solution for 7.3.

Btw regarding transparency we used to have it in NetBeans 3.5 but since the transparency was not settable in color customizer it was only available through "external execution". By default we had a transparent line for "Highlight Caret Row". I will work on restoring this in the current UI.
Comment 6 pjdm 2012-09-19 12:03:00 UTC
I agree with comment 4, that would make me happier. (Can't speak for anyone else, of course.)

Comment 5 is also good, but I'd prioritise it P3 at best.
Comment 7 positron 2013-11-30 09:21:30 UTC
Is it not fixed in 7.4 or am I missing the right option?
Comment 8 nleco 2014-01-14 22:57:19 UTC
I am on OSX Mavericks and on netbeans 7.4. I cannot change the EOL "paragraph" non-printable icon color.

I've set the proper lighter foreground color as 'DDDDDD'

Fonts & Colors
  - Syntax
    - All Languages
      * whitespace
    - Highlighting
      * Indentation Whitespace
      * Trailing Whitespace

everything changes to the color of choice except the EOL marker (paragraph icon)
Comment 9 FLik 2014-03-04 12:14:00 UTC
Could you resolve this issue please?
Comment 10 Olivier_M314 2014-07-29 02:22:21 UTC
(In reply to FLik from comment #9)
> Could you resolve this issue please?

+1

EOLs are particulary hard to read w a black solid font
Comment 11 mbessolov 2014-11-08 21:40:20 UTC
+1, black EOL markers are very distracting. It renders "Show non-printable characters" almost unusable.
Comment 12 ellockie 2015-03-10 11:04:36 UTC
There is a workaround that worked for me. Have a look at StackOverflow:

http://stackoverflow.com/questions/20261784/how-to-display-only-spaces-without-the-%C2%B6-in-netbeans-show-non-printable-c/
Comment 13 gerassimenko 2015-09-15 07:14:28 UTC
(In reply to ellockie from comment #12)
> There is a workaround that worked for me. Have a look at StackOverflow:
> 
> http://stackoverflow.com/questions/20261784/how-to-display-only-spaces-
> without-the-%C2%B6-in-netbeans-show-non-printable-c/

Same issue in version 8.0.2 and 8.1. And this workaround not work me.
Comment 14 Christian Lenz 2016-01-03 23:44:34 UTC
I think this goes hand in hand with my issues: https://netbeans.org/bugzilla/show_bug.cgi?id=255059

and

https://netbeans.org/bugzilla/show_bug.cgi?id=255060
Comment 15 markiewb 2016-01-04 19:19:04 UTC
@gerassimenko: Do not change the version! If the issue has been filed for 7.2 then it will be that way. Reset to 7.2. Vote instead!

But I reset the target milestone to TBD!
Comment 16 BlameFate 2016-04-28 10:06:20 UTC
Related to:
https://netbeans.org/bugzilla/show_bug.cgi?id=207510
Comment 17 Christian Lenz 2016-11-23 10:11:47 UTC
(In reply to Petr Somol from comment #4)
> The main problem as I see it now is that currently there is no way of
> changing the appearance of the end-of-line symbol (the reversed P) if
> View->Show Non-Printable Characters is on. The simplest meaningful solution
> in my view is to let the settings in Fonts&Colors->Syntax->Whitespace affect
> also this symbol if it is displayed. Other possibly more fine-grained
> options can be supplied as enhancements in future.

I agree with you, would really help.
Comment 18 dagnelies 2017-06-08 11:50:23 UTC
...this is almost 5 years old and yet still nothing in sight, it's saddening.
Comment 19 Christian Lenz 2017-06-08 11:53:52 UTC
(In reply to dagnelies from comment #18)
> ...this is almost 5 years old and yet still nothing in sight, it's saddening.


Yes it is but maybe this plugin can help you: http://plugins.netbeans.org/plugin/52662/editor-whitespace

I use it and it is ok for me, until they will change the color to the suggestion of using the same color as for whitespaces.
Comment 20 Christian Lenz 2018-11-14 16:20:21 UTC
I will close it, because it will handled now at the JIRA board: https://issues.apache.org/jira/browse/NETBEANS-1678. Please discuss it there for further information.