[racket] How do you tell DrRacket to treat source with different indentation rules?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Wed Jul 6 09:53:48 EDT 2011

DrRacket, alas, doesn't do this (yet). There are modes and you can add
new ones via a tool and attach them to file extensions but it doesnt
work via language properties yet.

Robby

On Tuesday, July 5, 2011, Danny Yoo <dyoo at cs.wpi.edu> wrote:
> I've been looking at:
>
>     http://docs.racket-lang.org/guide/language-get-info.html
>
> which explains how to create languages that cooperate with the
> DrRacket editor; in particular, it shows how to do colored tokens by
> defining a 'color-lexer.
>
>
> But I'd like to customize the indenter as well. Let's say that I'm
> happily hacking in brainf*ck, and I want to be able to press tab and
> have it indent by four spaces, regardless of the textual context.  At
> the moment, DrRacket continues to use Racket indentation rules, which
> are inappropriate for brainf*ck.  But I don't know how to teach
> DrRacket this.
>
>
> I haven't found examples of #lang languages that do this.  Am I
> missing something?
> _________________________________________________
>   For list-related administrative tasks:
>   http://lists.racket-lang.org/listinfo/users
>



Posted on the users mailing list.