Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » WikiText background
WikiText background [message #62577] Wed, 03 December 2008 09:21 Go to next message
yaumunlam  is currently offline yaumunlam
Messages: 33
Registered: July 2009
Member
Hi,

how to set background image or color for WikiText?

Thanks!

Yau.
Re: WikiText background [message #62625 is a reply to message #62577] Wed, 03 December 2008 21:46 Go to previous messageGo to next message
David Green is currently offline David Green
Messages: 135
Registered: July 2009
Senior Member
Yau wrote:
> how to set background image or color for WikiText?

Can you elaborate on your use case? Are you interested in the
background color/image of the WikiText markup editor, or markup rendered
to HTML in a Browser widget or MarkupViewer?
Re: WikiText background [message #62648 is a reply to message #62625] Thu, 04 December 2008 02:09 Go to previous messageGo to next message
yaumunlam  is currently offline yaumunlam
Messages: 33
Registered: July 2009
Member
Browser widget or MarkupViewer is preferred.

"David Green" <dgreen99@gmail.com> wrote in message
news:gh6uqn$ol4$2@build.eclipse.org...
> Yau wrote:
> > how to set background image or color for WikiText?
>
> Can you elaborate on your use case? Are you interested in the
> background color/image of the WikiText markup editor, or markup rendered
> to HTML in a Browser widget or MarkupViewer?
Re: WikiText background [message #62669 is a reply to message #62648] Thu, 04 December 2008 02:34 Go to previous message
David Green is currently offline David Green
Messages: 135
Registered: July 2009
Senior Member
Yau wrote:
> Browser widget or MarkupViewer is preferred.

If you're using a browser widget you can apply a CSS stylesheet. If
doing this programatically, consult the HtmlDocumentBuilder javadoc. If
doing this with Ant tasks, consult the WikiText User Guide documentation.

If you're using the MarkupViewer you can set the background color using
the standard JFace and SWT APIs. I believe it's something like:

markupViewer.getTextWidget().setBackground(color)

Let me know if that doesn't work out for you.

David
Re: WikiText background [message #595162 is a reply to message #62577] Wed, 03 December 2008 21:46 Go to previous message
David Green is currently offline David Green
Messages: 96
Registered: July 2009
Member
Yau wrote:
> how to set background image or color for WikiText?

Can you elaborate on your use case? Are you interested in the
background color/image of the WikiText markup editor, or markup rendered
to HTML in a Browser widget or MarkupViewer?
Re: WikiText background [message #595166 is a reply to message #62625] Thu, 04 December 2008 02:09 Go to previous message
yaumunlam  is currently offline yaumunlam
Messages: 33
Registered: July 2009
Member
Browser widget or MarkupViewer is preferred.

"David Green" <dgreen99@gmail.com> wrote in message
news:gh6uqn$ol4$2@build.eclipse.org...
> Yau wrote:
> > how to set background image or color for WikiText?
>
> Can you elaborate on your use case? Are you interested in the
> background color/image of the WikiText markup editor, or markup rendered
> to HTML in a Browser widget or MarkupViewer?
Re: WikiText background [message #595175 is a reply to message #62648] Thu, 04 December 2008 02:34 Go to previous message
David Green is currently offline David Green
Messages: 96
Registered: July 2009
Member
Yau wrote:
> Browser widget or MarkupViewer is preferred.

If you're using a browser widget you can apply a CSS stylesheet. If
doing this programatically, consult the HtmlDocumentBuilder javadoc. If
doing this with Ant tasks, consult the WikiText User Guide documentation.

If you're using the MarkupViewer you can set the background color using
the standard JFace and SWT APIs. I believe it's something like:

markupViewer.getTextWidget().setBackground(color)

Let me know if that doesn't work out for you.

David
Previous Topic:WikiText background
Next Topic:MarkupViewer and HyperlinkDetector
Goto Forum:
  


Current Time: Sat Oct 25 04:30:31 GMT 2014

Powered by FUDForum. Page generated in 0.22146 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software