[racket-dev] comment boxes
On Fri, Jun 25, 2010 at 6:50 PM, Paul Ojanen <engineer at alum.mit.edu> wrote:
> Are you thinking of totally removing any mode-ing/interpreting in the
> comment boxes? Or just saying you are going to have the boxes' mode match
> the file's mode? If it's the former, then my comments below are relevant.
>
> My students and I use comment boxes when we want to display editable code in
> a comment. I do it often for function templates. It's nice that the
> coloration and indentation work in a comment box. But, wow, does a comment
> box totally seem to bloat the size of a source file!
>
> I do like that when I use a comment block and then "reindent all" DrRacket
> does not mess up the indentation inside the comment block. But what is
> difficult about the comment blocks (when we're using to auto-indent) is that
> if a template is in a block, then changing a template doesn't get
> auto-indented unless we uncomment it, edit it, then re-comment it. This is
> by far the biggest use I and my very few students have for comment boxes
> over blocks, especially when copying-and-pasting templates to create new
> ones.
I think you're saying that you want to re-indent code inside a comment
box, right?
If so, did you try selecting the code and hitting "tab"?
Robby
> If it weren't for the function templates we wouldn't miss the comment boxes
> being able to be seen as code by DrRacket.
>
> -Paul
>
>> -----Original Message-----
>> From: dev-bounces at racket-lang.org [mailto:dev-bounces at racket-lang.org] On
>> Behalf Of Robby Findler
>> Sent: Friday, June 25, 2010 6:58 PM
>> To: dev
>> Subject: [racket-dev] comment boxes
>>
>> Currently, comment boxes use Scheme mode inside them. This was just
>> reported as a bug to me. Anyone actually use this behavior and would
>> like to preserve it? (Should we have two kinds of comment boxes maybe?
>> Any opinions on how to put them into the GUI?)
>>
>> Robby
>> _________________________________________________
>> For list-related administrative tasks:
>> http://lists.racket-lang.org/listinfo/dev
>
>