Page 1 of 1

displaying XML in external documents

Posted: Tue Jun 27, 2006 3:53 pm
by Franck
Dear Oxygen,

I am trying to display some XML fragment in a word document, and I am hitting the following problems.

- First of all, a simple cut and paste only gives me plain text XML, rather than a nice colored syntax.

- I've tried to be clever and print to a PDF file, with the intent of copying from the PDF file.
I am using WinToPDF, which I am very happy with. However, the result from Oxygen is that all the text is in a 1 pt font, with loads of spaces inserted in the text...

So, what would be your recommended way of generating my XML fragments, other than a screen print, or using my old XMLSpy copy :twisted: ?

Thanks

Posted: Tue Jun 27, 2006 5:41 pm
by sorin_ristache
Hello Franck,

It is a problem of the print support of the Java 1.5.0 virtual machine. Switch to Java 1.4.2 and the font size will be preserved in the PDF generated by Win2PDF. If <oXygen/> runs with Java 1.5.0 the font size of the PDF text is very small and you have to copy the colored text from the PDF file, paste it in the Word document and increase the font manually.

Regards,
Sorin

colored syntax in cut and paste

Posted: Tue Jun 27, 2006 6:24 pm
by Franck
Thanks for the PDF info.

That said, to go back to syntax colouring, I have noticed that the java editor in Eclipse preserves the syntax coloring when cut and pasting to a OLE application, but the Oxygen plugin does not.

I want to live in a world of colors! :cry:

Posted: Wed Jun 28, 2006 10:23 am
by sorin_ristache
Hello,

What is the OLE application which preserves the text colors and what is the Eclipse version ? Microsoft Word does not preserve the colors of text copied from a Java editor of Eclipse 3.1. When I use the Paste action Microsoft Word displays a dialog containing only the "Unformatted text" option.

Regards,
Sorin

Posted: Wed Jun 28, 2006 10:34 am
by george
Hi Frank,

I just tested pasting from the Eclipse 3.1 Java editor to Wrod and I cannot get formated text in Word. AFAIK Eclipse 2.1 used to provide formated text but since Eclipse 3.0 this is not true anymore. Oxygen on Eclipse should behave exactly like all the other Eclipse plugin because we use the same Eclipse support for syntax highlighting.

Best Regards,
George

it works on mine :-)

Posted: Wed Jun 28, 2006 2:37 pm
by Franck
George,

I've emailed you a word document with some screen shots, with java syntax colouring preserved when cut and pasting between eclipse and Word.

Let me know if you need more info.

Thanks

Posted: Wed Jun 28, 2006 3:19 pm
by george
Well, I have a slightly newer Word, same version but a little more recent build and I am not able to get the formated text from Eclipse to Word... And if you try to paste from the oXygen Eclipse plugin to Word in your configuration you get unfomrated text?
If I try to paste from Firefox in Word in my configuration I get formated text.
We will look more into this and let you know what we find out.

Best Regards,
George