Entering a newline from the middle of a tag

Oxygen general issues.
MarkL
Posts: 7
Joined: Thu Mar 26, 2009 11:56 pm

Entering a newline from the middle of a tag

Post by MarkL »

Hi,

I looked in the help, but I can't find any keyboard shortcut for entering a newline while in the middle of a tag without moving the tag.

For example, let say you've just type the following
<tag>Blah|</tag>
^ curser here

When you type <tag>, Oxygen automatically inserts </tag> and so all you need to type is blah, right? OK, so now I want to move to insert a linefeed, but I want </tag> to stay where it is.

In TextMate, you can press cmd-Enter and it will insert a linefeed but leave the text after the curser on the existing line.

I can't see how to do that in Oxygen. That is, I have to move the curser to the end of the line and then hit enter. Is that the only way to do it, or am I missing something?

Thanks,
Mark
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Entering a newline from the middle of a tag

Post by sorin_ristache »

Hello,

Yes, that is the only way to do it. We will consider adding a shortcut like CMD-Enter for inserting a newline at the end of the current line and moving the cursor to the next line.


Regards,
Sorin
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Entering a newline from the middle of a tag

Post by Radu »

Hello Mark,

Oxygen 11 (available in a few weeks) will have the Insert new line after action available either from the contextual menu -> Source submenu or with the Cmd+Alt+Enter shortcut which can be configured from the Menu shortcut keys preferences page.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
MarkL
Posts: 7
Joined: Thu Mar 26, 2009 11:56 pm

Re: Entering a newline from the middle of a tag

Post by MarkL »

Hi,

That's great! Thanks very much.

Cheers,
Mark
ericdeko411
Posts: 1
Joined: Tue Oct 06, 2009 8:40 pm
Contact:

Re: Entering a newline from the middle of a tag

Post by ericdeko411 »

Radu wrote:Hello Mark,

Oxygen 11 (available in a few weeks) will have the Insert new line after action available either from the contextual menu -> Source submenu or with the Cmd+Alt+Enter shortcut which can be configured from the Menu shortcut keys preferences page.

Regards,
Radu
This is great news. I hope it's coming good for the release.
Cheers!

Eric Deko
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Entering a newline from the middle of a tag

Post by Radu »

Hi,

An Oxygen 11 beta announcement is available here:
http://www.oxygenxml.com/pipermail/oxyg ... 02720.html

so you can try it out.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
angelism
Posts: 2
Joined: Mon Feb 15, 2016 9:12 am

Re: Entering a newline from the middle of a tag

Post by angelism »

Hi,

I tried Ctrl+Alt+Enter but it did not work. A new line gets added in the Text mode but nothing changes in the output/ Author mode.

Thanks
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Entering a newline from the middle of a tag

Post by Radu »

Hi,

What XML vocabulary are you using.
Usually when publishing from XML content, the text gets normalized, new lines are replaced with a space.
XML is based on semantics so usually to have a new line in the output you should start a new paragraph (use a paragraph element if your vocabulary has one).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
angelism
Posts: 2
Joined: Mon Feb 15, 2016 9:12 am

Re: Entering a newline from the middle of a tag

Post by angelism »

Hi Radu,

The XML version is as follows:
<li>Run the following command to make the <filepath>abc.bin</filepath> file,
executable: <lines><codeph>zyx</codeph></lines></li>

In the PDF output there is a wide spacing between "command:" and "abc./def" akin to two new line tags. A newline tagadds just one space hence it is better than adding <p> tag.

Is there way to add a new line tag in Oxygen Editor 17.0 ?
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Entering a newline from the middle of a tag

Post by Radu »

Hi,

I will assume you are editing DITA documents, is this correct?
There is no default way in DITA to specify that in a certain place of the XML text content a hard line break should be added.
You could probably create an output customization for this. So maybe you could try to register on the Yahoo DITA Users List and ask for help there:

https://groups.yahoo.com/neo/groups/dita-users/info

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