[racket] Custom syntax colorer in DrRacket's REPL?

From: Dmitry Pavlov (dmitry.pavlov at gmail.com)
Date: Tue Nov 8 01:35:39 EST 2011


I am developing a custom non-sexp language in Racket.
Here is how I provide my own syntax colorer for it
in module mylang/lang/reader.rkt:

#:info (lambda (key defval default)
           (case key
              (dynamic-require 'mylang/tool/syntax-color
             [else (default key defval)]))

It works great in DrRacket's definitions window, but does
not work in the interactions window -- the standard syntax
coloring is used there. Does anybody know how to fix that?

Best regards,


Posted on the users mailing list.