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.
In the PHP code editor, coloring preferences are not applied to some operators, for instance, '=' is not colored according to the operator rule but '.=' is. Also brackets, braces, and parenthesis are not colored according to the separator rule as they are in other languages, while semicolons are colored properly. A screenshot of the coloring on various elements is attached and can be seen at: http://cl.ly/LNP Additionally, color settings for Operators can be seen at: http://cl.ly/6OR and Separators at: http://cl.ly/MFx
Created attachment 97491 [details] Examples of correct and incorrect coloring behavior in php code.
Created attachment 97492 [details] Options pane for PHP -> Operators
Created attachment 97493 [details] Options pane for PHP -> Separators
With a little more testing it seems that this issue affects operators with only one character (=, +, >, ., etc), while operators with multiple characters (==, >=, ->, etc) are colored properly.
Confirmed that this issue also exists in 6.9M1 Mac
reproduced in Product Version: NetBeans IDE Dev (Build 100418-38937479e21f) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 1. change tools -> options -> fonts and colors -> syntax -> operators to whatever else color but default 2. example is correct but the mistake is in editor, colors (for- and background) are not assigned to 'one character' operators but are to 'two characters' operators
batch reassigning
Still reproducible in NB 7.0.1.
The problem is in lexer, that produce "wrong" tokens. '=' is PHP_TOKEN like '.' or ')' etc, but "==" or "+=" is PHP_OPERATOR. Needs to be corrected in PHPColoringLexer and then assign the right category for the tokens.
Hi, When this bug will be fixed? Thanks.
Still isn't fixed in 7.1.1 Highlighting parenthesis/braces/brackets and single character operators is always going back to default. Interesting, when selecting parenthesis/braces/brackets their match/mismatch is highlighted correctly (both foreground and background). Only way to change their color is changing the colors for All Languages -> Default, which in turn requires manual changing of all other colors that "inherit" this value.
*** This bug has been marked as a duplicate of bug 215718 ***