Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 268335 - Wrong keyword color in new Fonts&Colors profile
Wrong keyword color in new Fonts&Colors profile
Product: editor
Classification: Unclassified
Component: Options
PC Solaris
: P2 (vote)
: 8.2
Assigned To: Milutin Kristofic
cndreq, 82patch1-verified
Depends on:
  Show dependency treegraph
Reported: 2016-10-04 10:06 UTC by soldatov
Modified: 2016-12-12 14:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

proposed patch (3.09 KB, patch)
2016-10-04 15:44 UTC, Alexander Simon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2016-10-04 10:06:11 UTC
- Push Tools|Options
- Select "Fonts&Colors" category and Syntax tab
- Press Duplicate... button
- Type NetBeans111 in Profile Name field
- Select C language
- Select Keyword category
==> Current Foreground: [blue square] Inherited
- Press OK button
- Restart IDE
- Open Options window again
- Check C keyword settings again
==> Current Foreground: [green square] Inherited

Now In editor all C or C++ keywords has green colors.
Comment 1 Alexander Simon 2016-10-04 15:39:58 UTC
It seems method ColoringStorage.load() does wrong things if token name has '-'.
Comment 2 Alexander Simon 2016-10-04 15:43:48 UTC
For example after restart C++ keywords of duplicated color scheme has attributes:
"keyword => {S6{name=keyword,display name=Keyword,default=preprocessor-keyword-directive}}"
which point to green color.
Whereas xml has:
<fontcolor default="keyword" name="keyword"/>
Comment 3 Alexander Simon 2016-10-04 15:44:55 UTC
Created attachment 162330 [details]
proposed patch
Comment 4 Milutin Kristofic 2016-10-05 12:41:18 UTC
Thank you, you are right, it is some archaic code.
Comment 5 Quality Engineering 2016-10-06 02:47:00 UTC
Integrated into 'main-silver', will be available in build *201610060002* on (upload may still be in progress)

User: Milutin Kristofic <>
Log: #268335 - Wrong keyword color in new Fonts&Colors profile
Comment 6 Vladimir Voskresensky 2016-10-07 14:17:46 UTC
Comment 7 soldatov 2016-12-12 14:54:32 UTC
Verified in internal NetBeans 8,2 patch 1 build.

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