Tell me more ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

When using the built-in Debugger, the breakpoints and the current step will be framed looks like this:

enter image description here

My favorite part is, those frames are adaptive to the text when window width changing makes it auto-wrapped to a different shape:

enter image description here

So my question is:

How can I programmly get a frame with this kind of adaptive behavior, as good performance (executing fast) as possible?

share|improve this question
Define "efficient." Do you mean shortest code, fastest code, or something else? – rcollyer Dec 1 '12 at 13:35
@rcollyer Sorry for the ambiguousness. I would like a code executing as fast as possible. I have edited my descriptions. Thanks for pointing out. – Silvia Dec 1 '12 at 13:41
Maybe relevant: en.wikipedia.org/wiki/Word_wrap#Minimum_raggedness – ziyuang Dec 2 '12 at 2:30
@ziyuang Thanks for your information. But what I concern is not how to wrap text but how to draw the irregular frame around given text. – Silvia Dec 2 '12 at 11:43
@Silvia I think you can draw the frame after you wrap the text by surrounding your wrapped text, if I understand your question correctly. Or are you asking whether there is a built-in function for this purpose since this effect appears in Mathematica? – ziyuang Dec 2 '12 at 12:51
show 1 more comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.