Ah, I see it now under "Fonts & Colors" -> "Syntax" -> "Java" -> "Text
Block". It would be nice if the preview area had a multiline example.  Note
that the editor window doesn't paint it in the new colour after hitting
Apply or Ok. You have to close and re-open the editor - this makes it
tedious to adjust until you get a colour you like.

At first I was expecting it to render just like any other String
literal, but now I've recognized that it is good to have a different
background colour to make it clear what leading whitespace is and is not
included in the String.

Thanks,

Scott

On Sat, May 2, 2020 at 1:22 PM Geertjan Wielenga <[email protected]>
wrote:

> Note though that you can change the color of the textblock yourself to your
> liking in the Options window.
>
> Gj
>
> On Sat, 2 May 2020 at 18:43, Scott Palmer <[email protected]> wrote:
>
> > I just started using the new multiline strings literals in JDK-14 and
> > noticed that with a dark look and feel like either "Dark Nimbis" or
> > "FlatLaf Dark" on Windows 10, the text in multiline string has a white
> > background.
> > Can anyone else confirm?
> > I've file NETBEANS-4301 - Multiline string literals show with wrong
> > background colour when using dark LAF
> > <https://issues.apache.org/jira/browse/NETBEANS-4301>
> >
> > With Dark Nimbus the foreground colour is yellow, so it's really
> > unreadable.
> >
> > Regards,
> >
> > Scott
> >
>

Reply via email to