Source Formatting / Indention Question

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Emre
Posts: 1
Joined: Fri Jul 30, 2004 11:30 am

Source Formatting / Indention Question

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

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