|TextAttribute background of keuword [message #585901]
||Wed, 26 November 2008 14:49
Originally posted by: situchenghao.yahoo.com.cn|
TextAttribute has below Constructors:
TextAttribute(Color foreground, Color background, int style)
Now I'm using
IToken keywordToken = new Token(new
TextAttribute(Display.getCurrent().getSystemColor(SWT.COLOR_ DARK_RED),Display.getCurrent().getSystemColor(SWT.COLOR_WHIT E),
to indicate keywords, but when that line is highlighted, the background
color of that word is still white, it's ugly.
And I found in java source editor, the background color of keyword is
white also, but when that line is highlighted, the background color of
that keyword changed to as same as the highlight color.
I notice keyword in java source editor is also using BOLD font.
Does some one know how to implement same finction as java editor?
Thanks for your help.
Powered by FUDForum
. Page generated in 0.02168 seconds