displaying XML in external documents

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Franck
Posts: 35
Joined: Fri Jun 03, 2005 11:00 am

displaying XML in external documents

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
Franck
Posts: 35
Joined: Fri Jun 03, 2005 11:00 am

colored syntax in cut and paste

Post 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:
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Franck
Posts: 35
Joined: Fri Jun 03, 2005 11:00 am

it works on mine :-)

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply