| Summary: | Syntax Coloring - 'Static fields' doesn't work well | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Toshihiro Izumi <euthanasia_waltz> | ||||||
| Component: | PDT | Assignee: | PHP UI <php.ui-inbox> | ||||||
| Status: | CLOSED FIXED | QA Contact: | Ilina Stefanova <ilina.s> | ||||||
| Severity: | minor | ||||||||
| Priority: | P1 | CC: | ilina.s | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
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. |
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