[racket] [help] : Syntax coloration

From: Stephen De Gabrielle (spdegabrielle at gmail.com)
Date: Mon Dec 1 19:00:26 EST 2014

I don't *do* languages in racket, but I think this may be a helpful part of
the documentation:
http://docs.racket-lang.org/syntax-color/index.html
Stephen



On Mon Dec 01 2014 at 9:35:14 PM Florent PASTOR <flopastor06 at gmail.com>
wrote:

> Hello,
> I am a french student and I have to do a project for my studies...
> The project is a compilator from a lambda language to racket.
>
> I use the racket/gui and i defined an editor-canvas% to write in my
> lambda language. I would like implement the syntax coloring for my
> language.
> To do this, I re defined the on-char method ( define/override ) but,
> when i write now on my keyboard, the text doesn't appear in my
> editor-canvas%....
> Is it possible to just add at the end of the function on-char (without
> changing the on-char), a new function called "color-key" (for example)
> (previously defined by me) to coloring the text just insered ?
>
> Thank you very much
> Best regards
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20141202/69d9f7f0/attachment-0001.html>

Posted on the users mailing list.