This doesn't appear to do what I'm asking.<br><br>I tried this as per your suggestion:<br>
#lang scribble/manual<br>
@(require scribble/eval)<br>
<br>
@title{My Scribblings}<br>I'm going to write a really amazing factorial function now.<br><br>@interaction[<br>(define (factorial n)<br> (cond<br> [(zero? n) 1] ;; The zero test<br> [else (* n (factorial (sub1 n)))]))<br>
]<br><br><br>But when I hit Run, it doesn't seem to recognize factorial in the interactions window.<br><br><div class="gmail_quote">On Fri, Mar 16, 2012 at 6:41 PM, David Van Horn <span dir="ltr"><<a href="mailto:dvanhorn@ccs.neu.edu">dvanhorn@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 3/16/12 8:42 PM, Mark Engelberg wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So I'm trying to figure out the simplest way to create a document that<br>
is mostly text with a few Racket snippets. When I hit Run, I want the<br>
code to be evaluated for the interactions window. When I hit the<br>
scribble button, I want it to generate html that displays the formatted<br>
text along with the Racket snippets.<br>
<br>
First attempt:<br>
Use scribble/base and put an @ in front of any Racket code.<br>
Hitting run evaluates the Racket code, but scribblizing only shows the<br>
formatted text -- the code remains invisible.<br>
<br>
Second attempt:<br>
Use scribble/manual and put @racketblock[] around any Racket code.<br>
Looks great when you scribblize, but code doesn't evaluate.<br>
Another nuisance: IDE auto-converts opening bracket after @racketblock<br>
into a paren.<br>
</blockquote>
<br></div>
Is this what you're looking for? -- David<br>
<br>
#lang scribble/manual<br>
@(require scribble/eval)<br>
<br>
@title{My Scribblings}<br>
<br>
I don't always program, but when I do, I program in<br>
<br>
@interaction[(banner)]<br>
<br>
<br>
</blockquote></div><br>