Page 1 of 1

autoclose </span>

Posted: Wed Oct 31, 2012 12:20 pm
by roedygr
The way HTML Validator automaticallly types </span> most of the time does not work, because the proper position for it is somewhere to the right. You have to delete it and insert it. It works fine when you are typing a whole paragraph, rather than editing existing text.

Maybe HTMValidator could handle this better.

Perhaps when editing you get to drag the </span> to its proper place, or you can move it word by word left or right with a keystroke.

Perhaps unbalanced tags could be listed below ready to be inserted with a control key or mouse move.

Perhaps you could just turn off the autoclose.

Perhaps when a tag is unbalanced, you display some little mark at places where the close might logically be positioned You can then just click that little mark to insert it, or position the cursor and hit the auto/close Alt.. Perhaps just change the background of unbalanced text. Click Alt. anywhere in there to fix the problem.

Anyone else have some ideas?

Re: autoclose </span>

Posted: Wed Oct 31, 2012 1:36 pm
by Lou
I find the autoclose works well in two different mods.

When starting from scratch with auto on as I type the close tag is added and I can type what is needed between the open and close as I go.

Currently when editing, I have it turned off and when I add a new tag, I place the cursor in the desired place for the close tag and just type </ and the correct closing tag is auto-completed.

Some times I am surprised when I have included coding that forces closed a block and the auto complete closes something I don't expect. But it has always been correct.

Then again you could be talking about when selecting html tags from the tool bar, which is a different issue.

Re: autoclose </span>

Posted: Wed Oct 31, 2012 6:03 pm
by Albert Wiersch
Hi Roedy,

What are your settings in the Editor Options, Editor->HTML/Autotype page?

It sounds like you may have "Auto-type end tags" on when you'd prefer it off and perhaps the other option on so that it completes the end tag when you type "</" (like what Lou is using).