<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Timothy,</p>
<p><br>
</p>
<p>there is the option "copy text" in the halo menu of any morph for this:</p>
<p><br>
</p>
<p><img size="89889" contenttype="image/png" id="img732717" style="max-width: 99.9%; user-select: none;" contextid="img252079" tabindex="0" src="cid:c6c45966-d173-44f6-9327-9976f2d95c94"><br>
</p>
<p><br>
</p>
<p>In my example, this yields:</p>
<p><br>
</p>
<p></p>
<div>root<span style="white-space:pre"> </span>a PasteUpMorph(2434915) [world]</div>
<div><span style="white-space:pre"></span>bounds<span style="white-space:pre"> </span>
0@0 corner: 1920@1017</div>
<div><span style="white-space:pre"></span>owner<span style="white-space:pre"> </span>
nil</div>
<div><span style="white-space:pre"></span>submorphs<span style="white-space:pre">
</span><...></div>
<div><span style="white-space:pre"></span>fullBounds<span style="white-space:pre">
</span>nil</div>
<div><span style="white-space:pre"></span>color<span style="white-space:pre"> </span>
(Color r: 0.677 g: 0.194 b: 0.194)</div>
<div><span style="white-space:pre"></span>extension<span style="white-space:pre">
</span>a MorphExtension (1623744) [<...>]</div>
<div><span style="white-space:pre"></span>borderWidth<span style="white-space:pre">
</span>0</div>
<div><span style="white-space:pre"></span>borderColor<span style="white-space:pre">
</span>(Color r: 0.515 g: 0.181 b: 0.263)</div>
<div><span style="white-space:pre"></span>presenter<span style="white-space:pre">
</span>an EtoysPresenter (2134088)</div>
<div><span style="white-space:pre"></span>model<span style="white-space:pre"> </span>
a MorphicModel(2129814)</div>
<div><span style="white-space:pre"></span>cursor<span style="white-space:pre"> </span>
1</div>
<div><span style="white-space:pre"></span>padding<span style="white-space:pre"> </span>
3</div>
<div><span style="white-space:pre"></span>turtleTrailsForm<span style="white-space:pre">
</span>nil</div>
<div><span style="white-space:pre"></span>turtlePen<span style="white-space:pre">
</span>nil</div>
<div><span style="white-space:pre"></span>lastTurtlePositions<span style="white-space:pre">
</span>nil</div>
<div><span style="white-space:pre"></span>isPartsBin<span style="white-space:pre">
</span>nil</div>
<div><span style="white-space:pre"></span>indicateCursor<span style="white-space:pre">
</span>nil</div>
<div><span style="white-space:pre"></span>wantsMouseOverHalos<span style="white-space:pre">
</span>nil</div>
<div><span style="white-space:pre"></span>worldState<span style="white-space:pre">
</span>a WorldState</div>
<div><br>
</div>
If you need a better-structured output, you can retrieve the #explorerContents from any object manually. Hope this helps. :-)
<p></p>
<div><br>
</div>
<div>Best,</div>
<div>Christoph</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von gettimothy via Squeak-dev <squeak-dev@lists.squeakfoundation.org><br>
<b>Gesendet:</b> Samstag, 5. Februar 2022 13:35:04<br>
<b>An:</b> squeak-dev<br>
<b>Betreff:</b> [squeak-dev] In object Explorer, is there a way to copy the text of the expanded tree?</font>
<div> </div>
</div>
<div>
<div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;">
<div>The purpose would be to copy-n-paste it into documentation, but I have not found a way to do it.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> take something like....<br>
</div>
<div><br>
</div>
<div>
<blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(255, 255, 255);">
<div>(WABuilder on: WAHtmlCanvas)<br>
</div>
<div>rootClass: WAHtmlRoot;<br>
</div>
<div>documentClass: WAHtmlDocument<br>
</div>
</blockquote>
<br>
Inspect it.<br>
Click the "Explore" button at bottom of inspector.<br>
Expand the tree view a bit.<br>
Copy and paste that tree into a text like this email.<br>
<br>
thx in advance.</div>
<div><br>
</div>
</div>
<br>
</div>
</body>
</html>