[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

Hello,

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
             [(color-lexer)
              (dynamic-require 'mylang/tool/syntax-color
                               'get-syntax-token)]
             [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,

Dmitry


Posted on the users mailing list.