Entering a newline from the middle of a tag

<oXygen/> general issues.
MarkL
Posts: 7

Entering a newline from the middle of a tag

Fri Mar 27, 2009 6:58 am

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: 4144

Re: Entering a newline from the middle of a tag

Fri Mar 27, 2009 1:54 pm

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: 5217

Re: Entering a newline from the middle of a tag

Fri Oct 02, 2009 11:32 am

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

Re: Entering a newline from the middle of a tag

Tue Oct 06, 2009 12:30 pm

Hi,

That's great! Thanks very much.

Cheers,
Mark
ericdeko411
Posts: 1

Re: Entering a newline from the middle of a tag

Tue Oct 06, 2009 9:05 pm

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: 5217

Re: Entering a newline from the middle of a tag

Thu Oct 08, 2009 12:34 pm

Hi,

An Oxygen 11 beta announcement is available here:
http://www.oxygenxml.com/pipermail/oxygen-user/2009-September/002720.html

so you can try it out.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
angelism
Posts: 2

Re: Entering a newline from the middle of a tag

Mon Feb 15, 2016 9:37 am

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: 5217

Re: Entering a newline from the middle of a tag

Mon Feb 15, 2016 10:30 am

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

Re: Entering a newline from the middle of a tag

Wed Feb 17, 2016 2:48 am

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: 5217

Re: Entering a newline from the middle of a tag

Wed Feb 17, 2016 3:17 pm

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

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 1 guest