[racket] How can I add new keywords (for syntax highlighting) to DrRacket ?

From: Scott McLoughlin (scottmcl66 at gmail.com)
Date: Sun Oct 3 10:27:10 EDT 2010

It's very, very simple.

When I type along in DrRacket, "cond" or "define" is highlighted
according  to my Edit>Preferences (say, Blue in a bold font).

But "if" is not. Nor is "struct:" in typed/racket. And so on and
so forth...  What the "keyword" might be is totally irrelevant as far
as I am concerned (really).

I surmise there *must* be a way to add keywords to some list
that are then "highlighted" by the DrRacket editor according to
the configuration of Edit>Preferences.

If not, this is an extraordinary foolish oversight. But I imagine
there is some configuration option that I have not yet discovered.

All real, authoritative knowledge on this issue greatly appreciated.

Scott


On 10/3/2010 8:51 AM, Robby Findler wrote:
> What do you mean by highlighting, precisely? I assume clicking "check
> syntax" is not what you're looking for? If you want something that is
> insensitive to the actual langauge (ie would highlight if even if if
> weren't a keyword) and worked in an "online" manner, than the colorer
> is what you'd want, but you'd probably have to do some minor drracket
> hacking to wire it up.
>
> Robby
>
> On Sun, Oct 3, 2010 at 6:11 AM, Scott McLoughlin<scottmcl66 at gmail.com>  wrote:
>>   "if" just for example.
>>
>> I'm not asking about a lecture on the wisdom of doing so.
>> I'm just asking how.
>>
>> Thanks a million in advance.
>>
>> Scott
>> _________________________________________________
>>   For list-related administrative tasks:
>>   http://lists.racket-lang.org/listinfo/users
>>



Posted on the users mailing list.