[REBOL] Re: Folding browser & editor
From: greggirwin:mindspring at: 23-Dec-2002 10:18
Hi Andrew,
AM> What do people think about a cgi script that would allow a browser to view
AM> and edit Rebol script, and fold blocks (and strings) open or closed?
...
AM> Naturally, clicking on a "[" (open square bracket) would fold open up the
AM> block, and clicking on a "]" would fold close the block. For example,
AM> clicking on the first "[" in this view:
Code folding editors can be pretty cool, though I've never gotten into
them myself as I grew up on a different paradigm. In any case, would
it be possible to detect a click anywhere on a folded block (e.g. on
any part of "[...]") to expand it? It's hard to say, not having used
it, but I think it might be easy to get confused if you have to click
on a particular bracket to get what you want, especially if they're
close. I would also think a hot-key might be a better choice, so you
could have the caret anywhere in a block and hitting the key would
collapse, or expand, the block it's currently in.
Take this with a grain of salt since it's not my area. Maybe someone
who has used lot of others will chime in. My only experience with this
kind of thing is Frontier, which does it a bit differently than many
others I expect since Dave Winer thinks in outlines.
-- Gregg