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 200923 - Color of a rainbow in Options->Fonts&Colors->Syntax
Summary: Color of a rainbow in Options->Fonts&Colors->Syntax
Status: RESOLVED DUPLICATE of bug 213944
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 7.1
Hardware: PC All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-12 20:57 UTC by yuriy_lalym
Modified: 2012-06-12 11:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (58.13 KB, image/png)
2011-08-12 20:57 UTC, yuriy_lalym
Details
screenshot 2 (31.21 KB, image/png)
2011-08-12 21:01 UTC, yuriy_lalym
Details
xhtml syntax highlight (56.82 KB, image/png)
2011-11-15 16:43 UTC, arataj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yuriy_lalym 2011-08-12 20:57:42 UTC
Created attachment 109955 [details]
screenshot

1.
Preprocessor Directive
User/System Header

Color changes as wants.

2. 
int main()
void foo()

main and foo not Identifiers, this "Functions Declaration" - their color should be another.
Comment 1 yuriy_lalym 2011-08-12 21:01:08 UTC
Created attachment 109956 [details]
screenshot 2
Comment 2 Alexander Simon 2011-08-31 13:36:44 UTC
I do not exactly understand what you mean.
Probably problem was fixed in bug #193810.
Comment 3 yuriy_lalym 2011-09-05 21:27:14 UTC
Слева текстовый редактор. В нем слово include имеет цвет близкий к пурпурному.
Справа окно настроек. Вкладка Syntax.
В списке выбрана категория соответствующая слову include. В поле Foreground - пурпурный цвет. А в поле Preview цвет этого слова то белый, то зеленый, то еще какой.

Цвет категории "Включаемый файл" в поле Preview так же не соответствует ничему.

Preview показывает, что пожелает.

Проверено на NetBeans IDE Dev (Build 201109040600)
Comment 4 Alexander Simon 2011-09-06 08:10:39 UTC
Steps to reproduce bug:
- open Options->Fonts&Colors->Syntax
- select "C" language and change color of "Preprocessor Keyword Directive" on Magenta.
- select "C++" language and change color of "Preprocessor Keyword Directive" on Red.
- select "C/C++ Header" language and change color of "Preprocessor Keyword Directive" on Yellow.
- save options.
- open in editor header, c source file and c++ source file. Preptocessor directives have right colors.
- open Options->Fonts&Colors->Syntax
- select "All languages" and "String"
- select "C" language and "Preprocessor Keyword Directive"
- select "C++" language and "Preprocessor Keyword Directive"
- select "C/C++ Header" language and "Preprocessor Keyword Directive"
- repeat last 3 steps in random order.
See random coloring of "Preprocessor Keyword Directive" in preview pane.

It seems it is common editor/options problem (because bug is also reproduced with "All languages" & HTML)
Reassign to evaluation.
Comment 5 arataj 2011-11-15 16:43:34 UTC
Created attachment 113236 [details]
xhtml syntax highlight
Comment 6 arataj 2011-11-15 16:46:31 UTC
The bug is easier to reproduce -- just iterate over various languages in Options->Fonts&Colors->Syntax, and you'll eventually get wrong colors like in the attached screenshot "xhtml syntax highlight".

Also, see the thread at http://forums.netbeans.org/viewtopic.php?t=44666 -- I guess it is the same issue, and there is an exception, which perhaps will shed some light on the issue.
Comment 7 Milutin Kristofic 2012-05-09 12:16:32 UTC
Can you reproduce this bug in 7.2? I cannot.

Product Version: NetBeans IDE Dev (Build 20120509-4258c36c7fc2)
Java: 1.6.0_29; Java HotSpot(TM) 64-Bit Server VM 20.4-b02
System: Linux version 3.0.0-19-generic running on amd64; UTF-8; en_US (nb
Comment 8 Vladimir Riha 2012-05-11 08:04:22 UTC
Partially I can, select CSS in Tools|Options|Fonts&Colors|Syntax and CSS in Language list. Check the "h1,h2 >h3" it should be green as in css file


Product Version: NetBeans IDE Dev (Build 201205100400)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Linux version 3.0.0-19-generic-pae running on i386; UTF-8; en_US (nb)
Comment 9 Milutin Kristofic 2012-06-12 11:10:43 UTC
There is no semantic highlighting in fonts and colors. h1, h2 are just identifiers no selectors.

*** This bug has been marked as a duplicate of bug 213944 ***