fold code and disclosure triangle TextWrangler
- Enrico
- Topic Author
- Offline
Less
More
- Posts: 222
- Thank you received: 0
4 years 6 months ago #111704
by Enrico
fold code and disclosure triangle TextWrangler was created 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
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.
- Valentin
- Offline
Less
More
- Posts: 9893
- Thank you received: 385
4 years 6 months ago #111724
by Valentin
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Replied by Valentin on topic fold code and disclosure triangle TextWrangler
Hi Enrico,
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
Probably is my lack of english, but what do you mean by "disclosure triangles"?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.
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.
- Enrico
- Topic Author
- Offline
Less
More
- Posts: 222
- Thank you received: 0
4 years 6 months ago - 4 years 6 months ago #111733
by Enrico
This message has an attachment image.
Replied by Enrico on topic fold code and disclosure triangle TextWrangler
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
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.
Last edit: 4 years 6 months ago by Enrico.
Please Log in to join the conversation.
- Valentin
- Offline
Less
More
- Posts: 9893
- Thank you received: 385
4 years 6 months ago #111755
by Valentin
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
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
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.
- Enrico
- Topic Author
- Offline
Less
More
- Posts: 222
- Thank you received: 0
4 years 6 months ago - 4 years 6 months ago #111820
by Enrico
Replied by Enrico on topic fold code and disclosure triangle TextWrangler
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.
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.
Last edit: 4 years 6 months ago by Enrico.
Please Log in to join the conversation.
- Valentin
- Offline
Less
More
- Posts: 9893
- Thank you received: 385
4 years 6 months ago #111832
by Valentin
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
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
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.