Technical question regarding the MarkupViewer [message #601748] |
Thu, 22 July 2010 07:46 |
|
Hi,
I have a question about your MarkupViewer, but first let me put everything in context. I need to have a support for (a subset of ?) the textile language and I can't use your API. The MarkupViewer would be perfect for me, and it works very nicely, I tested it, but I can't have a dependency with your API so I can't use it. I would like to, but I can't (I'm working on http://www.eclipse.org/acceleo/ and the feature I need it for is "too small" to have such a "big" dependency). So I've been digging in your code and there's one thing that I haven't found.
If I give "*yo*" to your MarkupViewer, your partition scanner, your code scanner and everything detect that this should be in bold, but you are not showing "*yo*" (in bold) in the viewer but "yo". The offset/length of the area that should be in bold have been recalculated and the two "*" have been deleted. So what is the class and the method in charge of that transformation ?
Regards,
Stephane Begaudeau, Obeo
--
Stephane Begaudeau @ Obeo
http://www.eclipse.org/acceleo
|
|
|
Re: Technical question regarding the MarkupViewer [message #601786 is a reply to message #601748] |
Tue, 27 July 2010 15:22 |
David Green Messages: 136 Registered: July 2009 |
Senior Member |
|
|
Stephane,
Great to see that you're interested in WikiText. Why do you call the
dependency "big"?
MarkupViewer transforms content to HTML prior to display. This enables
it to perform transforms such as the one you mentioned, and it also
makes it work well with multiple markup languages. This transform is
performed in
org.eclipse.mylyn.wikitext.ui.viewer.MarkupViewer.setDocumen t(IDocument,
IAnnotationModel, int, int). MarkupViewer extends HtmlViewer, which
handles the text styles of the HTML markup.
Regards,
David
On 7/22/2010 12:46 AM, Stephane Begaudeau wrote:
> small" to have such a "big" dependency). So I've been digging in your
> code and there's one thing that I haven't found.
>
> If I give "*yo*" to your MarkupViewer, your partition scanner, your code
> scanner and everything detect that this should be in bold, but you are
> not showing "*yo*" (in bold) in the viewer but "yo". The offset/length
> of the area that should be in bold have been recalculated and the two
> "*" have been deleted. So what is the class and the method in charge of
> that transformation ?
>
> Regards,
>
> Stephane Begaudeau, Obeo
|
|
|
Powered by
FUDForum. Page generated in 0.03307 seconds