NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Auto close of tags


Joined: 06 Feb 2007
Posts: 8
Reply with quote
Most of the time, i don't want the </div> to appear straight away when i open a <div> tag... What I want is when i type the </ it will check back for the last unclosed tag that i've opened and auto-close that for me.

eg...

Code:
<body>
   <div>
      <span class="demo">Hello</span>
      <input type="text" name="test" value="test" />


now... typing </ here will insert my </div> tag as the <div> was the last unclosed tag

then... typing </p again will then insert the </body> tag for me.
View user's profileFind all posts by ryanjhawkinsSend private message


Joined: 15 Jan 2007
Posts: 18
Reply with quote
I too got used to working like this in Dreamweaver 8 - it's actually very handy when you come to debug complicated html layouts where you've forgotten to close a div somewhere, or just typed <div> instead of </div> An option to switch the autocomplete type would be great !

Now I don't know if PhpED does it already but what would be REALLY handy would be the ability for it to highlight the end tag when you're over the start tag and vice-versa, like it does with brackets but with HTML tags too. i.e. if i'm over a <div> it would highlight the corresponding </div> for me.

Just an idea !
View user's profileFind all posts by martinjstevenSend private message
Auto close of tags
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