Here it is. (via racket users)
CONTENTS
Meta
Just posted the updated version of DrSync for Racket on PlaneT.
A library of purely functional data structures in Typed Racket. Data structures in the library are based on Chris Okasaki’s book Purely Functional Data Structures, work by Phil Bagwell and others (via racket)
The OP asked how to set the background color in Slideshow as it is not obvious. Matthew replied: Locally, I’d superimpose a picture onto a color rectangle: #lang slideshow (define (add-bg p color) (refocus (cc-superimpose (colorize (filled-rectangle (pict-width p) (pict-height p)) color) p) p)) (add-bg (bt "Hello") "green") To globally set the background, [...]
The OP asked: Is there a way to evaluate something in a given evaluator without having anything displayed in the output? Ie. I want to feed a couple of basic function definitions into the evaluator instance that I obtain with (make-base-eval). Matthew shared the solution: interaction-eval. (via plt)
The scribble/eval library provides utilities for evaluating code at document-build time and incorporating the results in the document, especially to show example uses of defined procedures and syntax. Here is an example where the OP was: trying to figure out a way to insert some text in between Scheme definitions: that is, have some definitions [...]
You can use ‘code:hilite’ to highlight expressions in Scribble generated documentation like this: @schemeblock[ (+ 1 (code:hilite +inf.0)) ] It doesn’t work for multi-line expressions yet, however. (via plt)
A frequent question on the PLT Scheme discussion list is how to implement new languages on top of PLT Scheme. In the next release documentation explaining how to do so is included, and there is a preview here. (via plt)
Here is how to get the current line number programmatically in PLT Scheme (via Jay): #lang scheme (define-syntax (current-line-number stx) (quasisyntax/loc stx ‘#,(syntax-line stx))) (printf "~a: ~a~n" (current-line-number) 6) (printf "~a: ~a~n" (current-line-number) 8) (via plt)