Community
Participate
Working Groups
Steps to reproduce: 1. Open Preferences>PHP>Editor>Syntax Coloring 2. Select 'Static fields' (it is enabled and 'Italic' is checked by default) 3. Click 'Bold' for example => Sample text won't be changed, '$my_static' should be displayed in italic and bold 4. Click '$my_static' in sample text => 'Fields' in elements list will be selected, 'Static fields' should be selected In PHP Editor, 'Static fields' coloring doesn't work in declaration but works in statement. class Foo { public static $sta=0; // colored according to 'Fields' setting } Foo::$sta; // colored according to 'Static fields' setting
Created attachment 185893 [details] patch for preference page
Created attachment 185894 [details] patch for editor
great,it is ok for me,applied to head,thanks!
Verified.