I was forwarded a nice working sample from Grant Rettke. From a high level, just build a snip% and display it.<br><br><div class="gmail_quote">On Wed, May 9, 2012 at 10:14 PM, Ray Racine <span dir="ltr"><<a href="mailto:ray.racine@gmail.com" target="_blank">ray.racine@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Say I have a modestly complex set of data contained in a standard Racket structure, e.g. (struct: Data ([...])). I'd like to define some sort of specialized pretty print (visualization) capability to be used withing DrRacket at the REPL level.<div>
<br></div><div>So I'm working with some code in Dr Racket in the REPL.</div><div><br></div><div>> (define data (Data ....)) ;; create a structure of data</div><div><br></div><div>> (pretty-visualize data) ;; Either pops up some dialog with text/graphical visualization or is rendered by the REPL immediately below.</div>
<div>==================</div><div>| Text </div><div>| or 2-d Canvas </div><div>| rendering here.</div><div>|</div><div>|</div><div>==================</div><div><br></div><div>> |</div><div><br></div><div>Say something along the lines one can see in the Professional Tables here.</div>
<div><a href="http://en.wikibooks.org/wiki/LaTeX/Tables" target="_blank">http://en.wikibooks.org/wiki/LaTeX/Tables</a></div><div><br></div><div>I've been poking around in the DrRacket manual but haven't found any place to gain traction on something like this. Any pointers on here I should start reading?</div>
<div><br></div><div>Thanks in advance.</div><div><br></div>
</blockquote></div><br>