- [Cookbook] Embedded documents

From: Douglas G. Danforth <"Douglas>
Date: Sat, 14 May 2005 18:30:37 -0400

----boundary-LibPST-iamunique-170396422_-_-
Content-type: text/plain

Folks,

I would like to adhere to the tenant of "one place only" for module code
and the documentation for that code.

The BlackBox "Examples" found under Help->Examples splits the
documentation and sourcecode into two separate files. It occures to me
that it would be nicer to have the source code "embedded" within the
documentation so that there is a tighter binding. That is, we retain
two files but when the documentation file is opened we see an embedded
view that shows the sourcecode (ideally the documentation should wrap
around the embedded view but that is not necessary).

So, how do I open one document and have it also show the contents of
another document (embedded with smaller frame size and scrollable)?

A small bit of code would be appreciated.

-Doug

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy



----boundary-LibPST-iamunique-170396422_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEZvbGtzLFxwYXINClxwYXINCkkgd291bGQgbGlr
ZSB0byBhZGhlcmUgdG8gdGhlIHRlbmFudCBvZiAib25lIHBsYWNlIG9ubHkiIGZvciBtb2R1bGUg
Y29kZSBccGFyDQphbmQgdGhlIGRvY3VtZW50YXRpb24gZm9yIHRoYXQgY29kZS5ccGFyDQpccGFy
DQpUaGUgQmxhY2tCb3ggIkV4YW1wbGVzIiBmb3VuZCB1bmRlciBIZWxw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ST-iamunique-170396422_-_---
Received on Sun May 15 2005 - 00:30:37 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:14 UTC