Edit|Preferences, Editing, Indenting. Add "if" to one of those columns. If you dont' want to change the indentation of if, but do want it to be a keyword, then DrRacket isn't currently flexible enough for you (patches welcome).
Robby On Sun, Oct 3, 2010 at 9:27 AM, Scott McLoughlin <scottmc...@gmail.com> wrote: > > 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<scottmc...@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 >>> > > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users > _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users