SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75! 
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

fold code and disclosure triangle TextWrangler

4 years 6 months ago #111704 by Enrico
Hello support,

I'm using TextWrangler 4.5.12, the current free release on Mac OS-X. I'd like to be able to insert disclosure triangles in the gutter to control ranges of selected code. The manual offers no guidance, other than to say that these disclosure triangles are autogenerated, and I've searched support forums without success. If I use View >> Fold Selection, I'll get a gray oval with white ellipses in it to indicate folded text. But that's much less useful than the disclosure triangle in the gutter. TextWrangler automatically folds and adds a disclosure triangle inconsistently. Sometimes it will generate a disclosure triangle for a <div>, other times not. When it does not automatically generate a disclosure triangle, I'd like to manually assign one. Do you have any hints on how this can be done?

Thanks,
Enrico

Please Log in to join the conversation.

4 years 6 months ago #111724 by Valentin
Replied by Valentin on topic fold code and disclosure triangle TextWrangler
Hi Enrico,

I'm using TextWrangler 4.5.12, the current free release on Mac OS-X. I'd like to be able to insert disclosure triangles in the gutter to control ranges of selected code.

Probably is my lack of english, but what do you mean by "disclosure triangles"?

By the way I use TextWrangler 4.5.12 and I manually open and close the divs.

Looking forward to help you

Kind regards,
Valentín

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

4 years 6 months ago - 4 years 6 months ago #111733 by Enrico
Hi Valentin,

Being able to open and close (fold) sections of code is very useful. I just can figure out how to insert the triangles that you click in order to open or close a selection. TextWrangler generates them automatically, but sometimes it doesn't generate a triangle and I can't insert one. See p. 72 of the manual, attached, where they define "disclosure triangle." (Your system would not allow a PDF attachment; I've attached a JPEG.)



Thanks,
Enrico

This message has an attachment image.
Please log in or register to see it.

Please Log in to join the conversation.

4 years 6 months ago #111755 by Valentin
Replied by Valentin on topic fold code and disclosure triangle TextWrangler
Hi Enrico,
Thanks for the clarification! I see what you mean.
Still TextWrangler is a great one for the many free features it has.

Would you consider reporting the bug to the developer? www.barebones.com/contact/

Kind regards,
Valentín

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

4 years 6 months ago - 4 years 6 months ago #111820 by Enrico
Hi Valentin,
I contacted the developers, and here is their clarification:

if a document contains a <div> tag which spans multiple lines:

<div>
foo, bar!
</div>

then TextWrangler will generate a fold range for that tag, whereas it will not fold a <div> tag whose contents are contained within a single line:

<div>foo, bar!</div>

since there's no direct benefit in doing so.

Please Log in to join the conversation.

4 years 6 months ago #111832 by Valentin
Replied by Valentin on topic fold code and disclosure triangle TextWrangler
Hi Enrico,

That explanation make complete sense to me.

Thanks for sharing the details with us.

Kind regards,
Valentín

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!