Hi, Matthew:<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Slideshow's `code' layout depends on the layout of the source. To get
<br>the layout information, the source needs to be literally within a<br>`code' form.<br></blockquote><div><br> I have tried other ways, all fails <br><br>So , I have to copy/paste the source code in the my slides:-(
<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><div class="Ih2E3d">> 2. How can I reserve the annotations when I apply pretty-print ?
<br><br></div>I'm not sure I understand the question.<br></blockquote><div><br>I have many replace work to handle in my scheme source code , any time when I modify the source code, it appears hard to read<br><br>so I use pretty-print. but ,the annotations lost
<br><br>here is the code:<br><br> (define (sub before after source target)<br> (let ([v ()])<br> (call-with-input-file source<br> (lambda (iport)<br> (set! v (read iport))))<br> (call-with-output-file target
<br> (lambda (oport)<br> (pretty-print (tsub before after v) oport))<br> 'truncate)))<br></div></div><br>Yes, I can strip off the pretty-print on "(tsub before after v)"<br><br>but, it is hard to read that file, any suggestions?
<br><br><br>Gang<br>