Line wrap for comments and processing instructions

Having trouble installing Oxygen? Got a bug to report? Post it all here.
bmayer
Posts: 22
Joined: Mon Jul 09, 2012 5:30 pm

Line wrap for comments and processing instructions

Post by bmayer »

When viewing content in Author view in oXygen, comments and processing instructions that are long lines of text don't line wrap. Is there a way to have them wrapped so you don't have to scroll to the right?

I have Preferences, Editor, Edit Modes, Text, Line wrap checked off but it doesn't appear to work for comments and processing instructions.

Thanks,
Belinda Mayer
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: Line wrap for comments and processing instructions

Post by Radu »

Hi Belinda,

Well, actually Oxygen 14.0 which was release a month or so ago changed displayed comments and processing instructions to be line-wrapped by default.

But this can be done via the CSS, what type of XML documents are you editing?
Maybe I can propose you some modifications if you cannot update to 14.0.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
bmayer
Posts: 22
Joined: Mon Jul 09, 2012 5:30 pm

Re: Line wrap for comments and processing instructions

Post by bmayer »

Thanks Radu for the quick reply.

We're editing DITA XML documents. We use the Eclipse Author plug-in version, although since I'm in support I have a standalone version of Editor. I confirmed the issue happens in both.

If you can pass along the CSS that would be great. I'd have to look into our plans to upgrade to 14.

Belinda
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: Line wrap for comments and processing instructions

Post by Radu »

Hi Belinda,

Just open the CSS:

OXYGEN_INSTALL_DIR/frameworks/dita/css_classed/dita.css

and after the last import:

Code: Select all

@import "conrefs.css";
add the lines:

Code: Select all

@namespace oxy url('http://www.oxygenxml.com/extensions/author');

oxy|processing-instruction,
oxy|comment,
oxy|cdata{
white-space:pre-wrap !important;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
bmayer
Posts: 22
Joined: Mon Jul 09, 2012 5:30 pm

Re: Line wrap for comments and processing instructions

Post by bmayer »

Thanks Radu, that CSS fix worked.

On a related note, if you do a print of an XML DITA document and select Adobe PDF as the printer the text is now wrapped for the standalone version of oXygen Editor but not for the Eclipse version of oXygen. Is there another change to implement to get that working of is that an Eclipse issue?

Belinda
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: Line wrap for comments and processing instructions

Post by Radu »

Hi Belinda,

Yes, we've had this limitation from the very beginning, but you are the first user to report it.
On Eclipse the content is printed without wrapping the text according to the page width settings.

I added an improvement request to try to remove this limitation on Eclipse and I'll update this thread when this gets implemented.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: Line wrap for comments and processing instructions

Post by Radu »

Hi,

In Oxygen 16.1 which was just released, the Oxygen Eclipse Plugin should have better support for printing content in the Author visual editing mode.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply