So I'm trying to figure out the simplest way to create a document that is mostly text with a few Racket snippets. When I hit Run, I want the code to be evaluated for the interactions window. When I hit the scribble button, I want it to generate html that displays the formatted 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 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 into a paren.<br>
<br>I understand from the documentation that there are techniques that involve setting up whole project structures and using the raco tool. But I'm looking for something lightweight. Is there a way?<br><br>Thanks,<br>
<br>Mark<br><br><br>