Improving Semantic Coloring ... updated based on your comments
By Petr on Jul 13, 2008
On base of the comments for my previous entry Improving Semantic Coloring, I have update the semantic coloring. You can see the result at the picture.
Based on Mark's comment I have updated:
- coloring of unused private class fields (line 5)
- coloring of unused private method (line 16)
- coloring of static method name (line 24)
- coloring of unused private static method (line 28)
Pcdinh and Anton mentioned that the PHP code should be aligned in same column as <?php open tag. I agree and I have corrected our formating engine. Unfortunately the formatter doesn't have a UI to change the default settings so far.
Gerry mentioned color of the "<?php ?>" pair. I think that the suggested red color is suitable for expressing that something is wrong. I haven't changed the current default color, but everybody can change it simply through Fonts & Colors settings. If you want to change it, go to Tools->Options->Fonts & Colors. In Syntax tab select PHP in Language combobox and in Category select PHP Open/Close Tag item. Now you can change the appearance of the "<?php ?>" pair.