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.

Bug 196547 - "comment" won't change color from preferences
Summary: "comment" won't change color from preferences
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-10 14:41 UTC by malatorr
Modified: 2011-07-28 11:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
current color settings & current editor view (104.23 KB, image/png)
2011-03-10 15:09 UTC, malatorr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description malatorr 2011-03-10 14:41:07 UTC
I have changed the foreground and background color of comments in preferences and even when It shows the new color in the preview window, when I press ok in options, it does not change in editor. I'm programming with PHP plugin.


Product Version = NetBeans IDE 6.9.1 (Build 201007282301)
Operating System = Mac OS X version 10.6.6 running on x86_64
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02-334
Comment 1 malatorr 2011-03-10 15:09:18 UTC
Created attachment 106880 [details]
current color settings & current editor view
Comment 2 OndrejBrejla 2011-03-21 15:05:16 UTC
It works properly for me. Your preview shows settings for a "Language: All languages", so try to set it exactly for a "Language: PHP"...maybe it doesn't work for you, because in "Language: PHP" settings you don't have a "Inherited" value for a "Background" and "Foreground" property. Maybe you have there "hard setted" colors so they override your settings for "All languages".

Please, tell us what happened if you tried my recommendations, thanks.
Comment 3 malatorr 2011-03-21 15:16:24 UTC
I fixed by editing the property file, I remember that even when in netbeans it shows certain color settings for comments, in the color property files in that theme, it has different color settings. I "fixed" this by changing the colors directly from the file and restarting netbeans. It was impossible to change it from netbeans. 

I'm currently using "all languages instead of PHP", maybe that was the problem. I dont know, since I change the file, everything start to work ok, now I can change colors directly from netbeans GUI.

maybe I'm wrong, but I suspect something was working rare, but I still cant reproduce the original issue...:P



(In reply to comment #2)
> It works properly for me. Your preview shows settings for a "Language: All
> languages", so try to set it exactly for a "Language: PHP"...maybe it doesn't
> work for you, because in "Language: PHP" settings you don't have a "Inherited"
> value for a "Background" and "Foreground" property. Maybe you have there "hard
> setted" colors so they override your settings for "All languages".
> 
> Please, tell us what happened if you tried my recommendations, thanks.
Comment 4 OndrejBrejla 2011-03-21 15:26:15 UTC
Ok, so I'll close it as "works for me", because I really can't reproduce it. But if you find the way how to reproduce it, don't hesitate to reopen it and describe that failing use case.