Bug 215172 - Can not change EOL (line break, carret) color from Fonts&Colors tab
Can not change EOL (line break, carret) color from Fonts&Colors tab
Status: NEW
Product: editor
Classification: Unclassified
Component: Painting & Printing
7.2
PC Windows XP
: P2 with 8 votes (vote)
: 7.3
Assigned To: Miloslav Metelka
issues@editor
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-04 12:53 UTC by Dmitry.Sokolov
Modified: 2014-03-04 12:14 UTC (History)
6 users (show)

See Also:
Issue Type: TASK
:


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?


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo