Page 1 of 1

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

Posted: Fri May 30, 2003 10:11 pm
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>

Posted: Sun Jun 01, 2003 1:02 am
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

Has this option been added?

Posted: Sat Mar 13, 2004 10:15 pm
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.

Posted: Fri Apr 02, 2004 7:44 am
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

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

Posted: Fri Sep 28, 2007 11:50 am
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