You can select the "text mode" in the menu

  Edit>Modes(near the bottom)>Text mode

It disables indentation, but it may disable too many features.

For example it disables also parens matching :( .

And it also disables background syntax expansion, but you can still
use the "check syntax" button manually.

(Perhaps you can create a "no-indent" mode, I didn't look at the code.)

Gustavo

On Tue, Jun 16, 2015 at 1:20 AM, Yuhao Dong <yd2d...@uwaterloo.ca> wrote:
> Greetings Racketeers,
>
> I'm trying to make my own #lang that has a non-sexp syntax, like Scribble.
> However, the problem is the DrRacket always tries to indent my code as if it
> were Racket, which is extremely unusable and annoying.
>
> Since changing DrRacket's indenting behaviors seems undocumented, I looked
> at how Scribble did it, and then I put what I thought must be correct code
> here:
>
> https://github.com/quantum1423/mir/blob/master/lang/reader.rkt
>
> However, DrRacket still indents my code as if it were Racket, although it
> does turn off syntax highlighting correctly. I added the with-output-to-file
> line to see if the drracket:indentation branch is ever executed, but
> apparently it isn't.
>
> How does Scribble manage to get DrRacket to indent it in a non-sexp way?
>
> Thanks!
> Yuhao Dong
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to