[plt-scheme] copy-paste from scribble html docs to drscheme

From: Stephen De Gabrielle (spdegabrielle at gmail.com)
Date: Sun Oct 5 04:07:04 EDT 2008

Hi,

I sometimes copy paste code from the docs into DrScheme;

a really frustrating thing happens - every line in the docs is
replaces by 10 lines in DrScheme. (see example below)

I've attached a picture of the table structure used.

Would it be a problem If I looked into other ways of getting the same
layout without tables?

Cheers,

Stephen

--
Example source html for on-load-file (five lines)
<tbody><tr><td><table class="prototype"
cellspacing="0"><tbody><tr><td><p><span
class="schemeparen">(</span><span class="schemesymbol"><a
href="../reference/ivaraccess.html#%28form._%28%28lib._scheme/private/class-internal..ss%29._send%29%29"
class="schemesyntaxlink">send</a></span><span
class="hspace">&nbsp;</span><span
class="schemevariable">an-editor</span><span
class="hspace">&nbsp;</span><a
name="(meth._(((lib._mred/main..ss)._editor~3c~25~3e)._on-load-file))"></a><span
class="schemesymbol"><a
href="editor___.html#%28meth._%28%28%28lib._mred/main..ss%29._editor%7E3c%7E25%7E3e%29._on-load-file%29%29"
class="schemevaluelink">on-load-file</a></span></p></td><td><p><span
class="hspace">&nbsp;</span></p></td><td><p><span
class="schemevariable">filename</span></p></td><td><p><span
class="hspace">&nbsp;</span></p></td><td><p><span
class="hspace">&nbsp;</span></p></td><td><p><span
class="hspace">&nbsp;</span></p></td><td><p><span
class="hspace">&nbsp;</span></p></td></tr><tr><td><p><span
class="hspace">&nbsp;</span></p></td><td><p><span
class="hspace">&nbsp;</span></p></td><td><p><span
class="schemevariable">format</span><span
class="schemeparen">)</span></p></td><td><p><span
class="hspace">&nbsp;</span></p></td><td><p>→</p></td><td><p><span
class="hspace">&nbsp;</span></p></td><td><p><span
class="schemesymbol"><a
href="../reference/void.html#%28def._%28%28quote._%7E23%7E25kernel%29._void%7E3f%29%29"
class="schemevaluelink">void?</a></span></p></td></tr></tbody></table></td></tr><tr><td><p><span
class="hspace">&nbsp;&nbsp;</span><span
class="schemevariable">filename</span><span
class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span
class="schemesymbol"><a
href="../reference/Manipulating_Paths.html#%28def._%28%28quote._%7E23%7E25kernel%29._path%7E3f%29%29"
class="schemevaluelink">path?</a></span></p></td></tr><tr><td><table
class="argcontract" cellspacing="0"><tbody><tr><td><p><span
class="hspace">&nbsp;&nbsp;</span></p></td><td><p><span
class="schemevariable">format</span></p></td><td><p><span
class="hspace">&nbsp;</span></p></td><td><p>:</p></td><td><p><span
class="hspace">&nbsp;</span></p></td><td><table class="schemeblock"
cellspacing="0"><tbody><tr><td><p><span
class="schemeparen">(</span><span class="schemesymbol"><a
href="../reference/Data-structure_Contracts.html#%28def._%28%28lib._scheme/private/contract..ss%29._one-of/c%29%29"
class="schemevaluelink">one-of/c</a></span><span
class="hspace">&nbsp;</span><span class="schemevalue">'</span><span
class="schemevalue">guess</span><span
class="hspace">&nbsp;</span><span class="schemevalue">'</span><span
class="schemevalue">same</span><span class="hspace">&nbsp;</span><span
class="schemevalue">'</span><span class="schemevalue">copy</span><span
class="hspace">&nbsp;</span><span class="schemevalue">'</span><span
class="schemevalue">standard</span></p></td></tr><tr><td><p><span
class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
class="schemevalue">'</span><span class="schemevalue">text</span><span
class="hspace">&nbsp;</span><span class="schemevalue">'</span><span
class="schemevalue">text-force-cr</span><span
class="schemeparen">)</span></p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody>


--
example of pasting editor-snip because  I can't remember all the attributes :-)
--
(new editor-snip%
	

 [
	

[editor editor]
	




	


	

[with-border? with-border?]
	




	


	

[left-margin left-margin]
	




	


	

[top-margin top-margin]
	




	


	

[right-margin right-margin]
	




	


	

[bottom-margin bottom-margin]
	




	


	

[left-inset left-inset]
	




	


	

[top-inset top-inset]
	




	


	

[right-inset right-inset]
	




	


	

[bottom-inset bottom-inset]
	




	


	

[min-width min-width]
	




	


	

[max-width max-width]
	




	


	

[min-height min-height]
	




	


	

[max-height max-height]])

---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 5.png
Type: image/png
Size: 19865 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20081005/408f558f/attachment.png>

Posted on the users mailing list.