Hi, <br><br>I get two questions:<br><br>1. in slideshow, why code could not print my s-exp good?<br><br>2. How can I reserve the annotations when I apply pretty-print ?<br><br>below is the demo code, thanks!<br><br><br clear="all">
(module pretty-print-test (lib "slideshow.ss" "slideshow")<br> (require (lib "pretty.ss")<br> (lib "code.ss" "slideshow"))<br> <br> <br> (define code-test '(code "DrScheme" "DrScheme"
<br> "DrScheme" (break one) (break two) "DrScheme" "DrScheme" <br> (break three) "DrScheme"))<br> <br> (slide/center <br> (code #,code-test))
<br> <br> ;; it is different in REPL<br> <br> <br> (define test<br> '(this is<br> ;;annotation<br> a test))<br> (define ptest<br> (pretty-format test))<br> <br> (slide/center <br>
(code #,ptest)))<br><br> <br>Gang<br><br>