[racket] Scribble question

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue Jan 25 15:42:24 EST 2011

That's what a racketblock is for.

http://docs.racket-lang.org/scribble/scribble_manual_code.html#(form._((lib._scribble/manual..rkt)._racketblock))

Jay

2011/1/25 Manfred Lotz <manfred.lotz at arcor.de>:
> Hi there,
> If in a scribble document I want to have scheme code pretty printed and
> evaluated I could do like this:
>
> @interaction[
> (define (f x)
>   (+ 3 x))
>
> (print (f 4))
>   ]
>
> What would I do if I would like to have scheme code just pretty printed
> but not evaluated? so that I could have something like this
>
> (somefunc a b 2)
>
> without getting a complaint that somefunc isn'd defined.
>
>
>
>
>
> --
> Thanks,
> Manfred
>
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93


Posted on the users mailing list.