NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
autoclose tags doesnt work well enough to be useful...


Joined: 16 Apr 2007
Posts: 3
Reply with quote
the Autoclose Tags feature doesn't close the last unclosed tag in the hierarchy , it closes only the last unclosed tag if it is not closed.

example: this would close the p tag properly

Code:
<body>
<p>

</body>


example 2: this would not close the body tag if the p tag was closed

Code:
<body>
<p>
</p>


would it be possible to autoclose every tag in the hierarchy (reverse)sequentially perhaps like dreamweaver....as soon as "</" is typed?

thanks,
Leon
View user's profileFind all posts by LeeoniyaSend private message


Joined: 08 Sep 2006
Posts: 72
Location: Poland
Reply with quote
When fixing the close tag feature please don't forget about already closed tags so we don't get <img src="" /></img>, <br /></br> and others.

Another example:

<p><? echo 'x' ?></p>

is OK but:

<p><?= 'x' ?></'x'>

is not (:

I'd love to see the closing feature support hierarchy. This would be really useful.
View user's profileFind all posts by bartheqSend private message


Joined: 14 Jun 2007
Posts: 67
Reply with quote
I'm not sure if this has been suggested, but an alternative to auto-closing tags maybe to use a similar behaviour as Dreamweaver.

When typing a tag, say <p> the editor adds the closing tag as soon as the > is typed. The cursor is in between the >< so it's ready to type.

Also, support for xhtml syntax would be nice, so tags like <img would end with /> not <img></img>.

This could be a fair amount of work though...

Cameron.
View user's profileFind all posts by CjungeSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
you may want to check the following:
tools -> settings -> reserved words, select HTML language, double click on "p" tag, check "Auto Close" checkbox.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 10 Feb 2004
Posts: 93
Reply with quote
dmitri wrote:
you may want to check the following:
tools -> settings -> reserved words, select HTML language, double click on "p" tag, check "Auto Close" checkbox.

I tried that, but for things like <input, <img and <br it wants to close them improperly. In other words it does:
Code:
<img></img>
<input></input>
<br></br>
instead of
Code:
<input />
<img />
<br />

any chance this can be "fixed" in a future version?
View user's profileFind all posts by gilzowSend private messageAIM Address
autoclose tags doesnt work well enough to be useful...
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic