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.
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.
Created attachment 109956 [details] screenshot 2
I do not exactly understand what you mean. Probably problem was fixed in bug #193810.
Слева текстовый редактор. В нем слово include имеет цвет близкий к пурпурному. Справа окно настроек. Вкладка Syntax. В списке выбрана категория соответствующая слову include. В поле Foreground - пурпурный цвет. А в поле Preview цвет этого слова то белый, то зеленый, то еще какой. Цвет категории "Включаемый файл" в поле Preview так же не соответствует ничему. Preview показывает, что пожелает. Проверено на NetBeans IDE Dev (Build 201109040600)
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.
Created attachment 113236 [details] xhtml syntax highlight
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.
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
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)
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 ***