auto-complete <emphasis></emphasis> sets cursor

Having trouble installing Oxygen? Got a bug to report? Post it all here.
rowen
Posts: 1
Joined: Fri May 30, 2003 10:06 pm

auto-complete <emphasis></emphasis> sets cursor

Post by rowen »

Most tags set the cursor between the open and close tag, as in:

<para>[here's the cursor]</para>

But the cursor shows up wrong in <emphasis[here's the cursor]></emphasis>
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

When the inserted element does not have attributes the cursor is positioned between the tags. If it has attributes the cursor is positioned just after the tag name so that pressing "space" will show the attributes list.

What we can do is to add an option and allow for specifying where the cursor should be located after inserting an element through code insight, something like:
- put cursor always between tags

Best Regards,
George
jdidion
Posts: 1
Joined: Sat Mar 13, 2004 10:12 pm

Has this option been added?

Post by jdidion »

Is this actually an option now? I can't seem to find it. This is something that would be great to have for editing things like docbook documents.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

It is already implemented and it will be available in the next release.

With the current version you can use the "Learn structure" action to switch from the DTD/Schema driven content completion to document structure driven content completion, then, if you do not have in your document attributes for some element, the caret will be placed beteween the start tag and the end tag for that element. If you need back the content completion driven by DTD/Schema just perform a validation.

Best Regards,
George
Replykat

Re: auto-complete <emphasis></emphasis> sets cur

Post by Replykat »

rowen wrote:Most tags set the cursor between the open and close tag, as in:

<para>[here's the cursor]</para>

But the cursor shows up wrong in <emphasis[here's the cursor]></emphasis>
nice. thenk you
Post Reply