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.
I have this issue for so long that I eventually decided to report this bug. Basically, I don't understand why someone decided to create three separate highlighters for C/C++/header - I need to set the same properties thrice which is very inconvenient, and no way to copy one to another or inherit from another one. But what I'm going to tell is: when editing header file (*.h, not .c, not .cpp) it looks like the text is modified, but separate buffer of letters attributes stays unaltered, resulting in weird looking of the code. See the attached images. Closing and reopening the file won't help - I need to [Code Assistance -> Reparse project] For a few months I'm forced to use Eclipse based IDE in parallel, and when NB is in my opinion much better code editor, Eclipse highlighter is simply perfect. More options, easier to configure, always correct.
Created attachment 156755 [details] wrong syntax hl
Created attachment 156756 [details] correct syntax hl
It looks like a duplicate of the bug #255933. Please conform.
Yes - it looks similar. Interesting - adding the header into project Header Files folder solves the problem? I'll check it
(In reply to mariusz_m from comment #4) > Yes - it looks similar. > Interesting - adding the header into project Header Files folder solves the > problem? I'll check it IDE treat external (from project point of view) headers as library headers. IDE considers library headers as reуd only and unchangeable. As result IDE does not support modifications in library headers. If you include a library header in the project, IDE will reflect code model changes when the header is changed.
(In reply to Alexander Simon from comment #5) > IDE considers library headers as reуd only and unchangeable. reуd = read ;-)
Yes - it looks similar. Interesting - adding the header into project Header Files folder solves the problem? I'll check it(In reply to Alexander Simon from comment #5) > (In reply to mariusz_m from comment #4) > > Yes - it looks similar. > > Interesting - adding the header into project Header Files folder solves the > > problem? I'll check it > > IDE treat external (from project point of view) headers as library headers. > IDE considers library headers as reуd only and unchangeable. > As result IDE does not support modifications in library headers. > > If you include a library header in the project, IDE will reflect code model > changes when the header is changed. This sounds reasonable - thanks for explanation. In this case, IDE could detect that external file is modified and during saving propose/suggest adding it into the project tree. Otherwise how many peoples are aware of it?
*** This bug has been marked as a duplicate of bug 255933 ***