NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code folding comments


Joined: 29 Jun 2009
Posts: 26
Reply with quote
One thing I think would be nice to have some kind of title or something displayed when code is folded. For example, if you have a div tag with an id of newDomain, maybe it would look like the lower example, instead of the upper which is the way it is now.


[/code]
View user's profileFind all posts by DracosSend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
I like the general idea, but I'm not sure how it would be implemented considering the very dynamic nature of folding.

For example, what about if I select a random block of text and fold it? There are many other cases to handle as well.
View user's profileFind all posts by simshaunSend private message


Joined: 21 Nov 2009
Posts: 20
Reply with quote
I suggest:
Code:
Html code                                       => after collapse
<div id="footer>...</div>                       => <div#footer>
<div class="alert">...</div>                    => <div.alert>
<div class="alert foo">...</div>                => <div.alert.foo>
<div class="alert foo" id="footer">...</div>    => <div#footer.alert.foo>
View user's profileFind all posts by Jan TvrdíkSend private message


Joined: 14 Aug 2009
Posts: 35
Reply with quote
Thats a great idea.

There would be lots of cases that would need to be handled differently, but because there is already default behavior, maybe enhancements could be added over time to cover more and more of the possible cases.

I like. Hope this one makes it through the filter Smile
View user's profileFind all posts by cr0wn3rSend private message
Code folding comments
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