Втр, 01 Июн 2010, Sherlock Ric писал(а):
> example the start of a section could be indicated by:
>
> NB.# Initialize
>
> If it is desirable to explicitly close sections (can't think why
> though), maybe the following syntax would be better:
>
> NB.( Utils
>
> NB.)
>
> For now Sections could be supported by the IDE as a tab in the
> Sidebar much like the current "defs" tab. Or perhaps the idea of
> Sections could be integrated with "defs" so that defs are shown
> within Sections. Eventually/Potentially (when/if the code folding
> support for gtksourceview gets released), the syntax highlighter
> could also support the sections with code folding.
I don't know gtksourceview folding. However in vim it is possible to
fold by markers, default markers are {{{ and }}}. Eg. it is possible
to include comments to define a fold
NB. begin section utils {{{1
..... a lot of stuff
NB. end section utils }}}1
By asking project manager not to remove comment lines and then these
markers will be preserved inside the script built. Not sure if this
is what you wanted.
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm