
Is there any way to make DrRacket line-wrap when in Scribble mode?

this works for me?

Yeah, but that does it for all file types. I prefer not to word-wrap source code or have to toggle on/off all the time.

I don’t get scribble specific wrapping in drracket?

Although, I guess to racket, it’s all “source code” :slightly_smiling_face:

its a good idea.

I see why you would want to do it

I believe the code is in framework. but would you want there to be a settings panel where you specify what code types get wrapped and what don’t?

I think ideally the editor would change the “word wrap” option to something like “word wrap for these langs…” and allow the user to edit a list, and one option would be “all”?

Would it be hacky to have a directive in a comment at the end of the lang line?

not only hacky, but bad (IMO). it would mean I couldn’t look at someone else’s source code and use my settings w/o modifying the source

ah yes, that gets rapidly complex, I was thinking of an ‘Edit time phase’ https://dl.acm.org/doi/10.1145/3428290

would it be word wrap these #lang
’s , or word wrap these file types(extensions)? All the parts are there in Dr Racket and framework to build it yourself, but it doesn’t exist currently.

I wonder if DrRacket’s Quickscript could be used to provide a keybinding to toggle wrapping mode?

Quite likely. It should also be feasible to have a direct keybinding. You just need to find what is triggered, and hopefully it’s just a method call

@massung that was quick!

I haven’t tried any quickscripts in racket yet

let us know if you need a hand

:grin: