Page 1 of 1

Source Formatting / Indention Question

Posted: Fri Jul 30, 2004 11:42 am
by Emre
Hi,

I´ve installed the Eclipse version of the <oXygen/> editor for working on a Docbook document on an NT4 workstation.

As I´ve started writing the Docbook document with a regular editor with no auto-indention and formatting support the source looks really crappy.

I´d like to use <oXygen/> to format my source code in a neat looking way, similar to what Homesite does with HTML when one uses the according function.

As far as I see the function responsible for this in <oXygen/> is "Format and Indent" but I could not get it to work on my installation. When I press the the button or select "Format and Indent" from the "XML" menu nothing happens.

I´d expect

Code: Select all


<a>
<b><c>
<d>
</d>
</c></b></a>
to become

Code: Select all


<a>
<b>
<c>
<d>
</d>
</c>
</b>
</a>
but "Format and Indent" does nothing at all ...

Is there something I am missing?

Thanks in advance for your help.

Emre

Posted: Fri Jul 30, 2004 12:22 pm
by george
Dear Emre,

Please make sure your document is well formed by using the "Check document form" action. If the document is wellformed the formatting action should work. You can configure different formatting parameters from Window->Preferences -- oXygen->Editor->Format dialog.

Best Regards,
George