Page 1 of 1

Line Wrapping

Posted: Mon Jan 28, 2008 12:58 pm
by gwolfgang
Line Wrapping Button

To be able to work efficiently at code level, the line wrapping tool is very essential. This tool should is presently deeply nested in the menus, and not availalbe at button click.

It would be very good if a button could be included in the navigation bar. By pressing this button, line wrapping is turned on / off (see Notepad ++ for comparison). In Notepad ++ the line folding is not disturbed by having line wrapping on or off. Line folding and wrapping should be able to co-exist fully.

Thanks for considering this small, but important suggestion.

Posted: Mon Jan 28, 2008 4:50 pm
by sorin_ristache
Hello,

In the Text mode of the XML editor you have the action Image (Format and Indent) on the toolbar Document and on the menu Document -> XML Document. If you click on the toolbar button the XML content is formatted with the options set in Options -> Preferences -- Editor -- Format -- XML by inserting new line characters in the document. If you just want to wrap the lines visually without inserting new line characters you should check the option Line wrap in Options -> Preferences -- Editor -- Text. This option does not have a toolbar button because line wrapping does not seem to be switched on and off frequently. Usually the line wrapping is either on or off and the switch does not occur frequently.

In the Author mode the line wrapping is set by the white-space property in the CSS stylesheet that drives the rendering of your XML document.


Regards,
Sorin

Re: Line Wrapping

Posted: Tue Jan 29, 2008 5:07 am
by george
You can toggle soft wrapping not only from options but also with an action Document->Edit->Toggle Line Wrap. By default this has as shortcut CTRL+Shift+Y but you can change it if you like some other combination from Options->Menu Shortcut Keys.

Providing folding when soft line wrapping is enabled is recorded on our issue tracking system as an improvement request.

Regards,
George

Re: Line Wrapping

Posted: Mon Aug 30, 2010 8:33 am
by Radu
Hi,

Line wrap with code folding enabled will be available in Oxygen 12.

Regards,
Radu