autoclose </span>

For topics about current BETA or future releases, including feature requests.
Post Reply
User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 371
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

autoclose </span>

Post by roedygr » Wed Oct 31, 2012 12:20 pm

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?

User avatar
Lou
Rank V - Professional
Rank V - Professional
Posts: 269
Joined: Fri Jul 29, 2005 5:55 pm
Location: CO
Contact:

Re: autoclose </span>

Post by Lou » Wed Oct 31, 2012 1:36 pm

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.
Lou
Say what you will about Sisyphus. He always has work.

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3363
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: autoclose </span>

Post by Albert Wiersch » Wed Oct 31, 2012 6:03 pm

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).
Image
Albert Wiersch

Post Reply