anhnmncb wrote:

> > On Mon, Dec 15, 2008 at 11:09, Ben Schmidt wrote:
> >>> I believe it would require javascript in the HTML; and I don't think
> >>> it's work the trouble. Now if someone wants to tackle it, why not?
> >>
> >> Yes. The Javascript/HTML side of it is quite easy as long as the desired
> >> behaviour can be clearly specified (this is not easy given nested folds,
> >> etc.). The Vim side of it may not be so: I'm not sure if Vimscript can
> >> reliably discover all it needs to know about folds to produce such
> >> output. But maybe... I'll add it to my 'to do' list, which means I might
> >> get to it eventually, but I might not, but it's something that does
> >> vaguely interest me.
> >
> > Here's an easy way to do it with very little Javascript:
> >
> > http://www.silent-blade.org/misc/toggle.html
> >
> > This can be more complicated with nested folds, but not necessarily that 
> > much.
> 
> I think nested folds supporting is a killer feature. When it
> completes, I don't need any other formating tools to take my code or
> document presentation, a html version is enough.

Yes, it would be very nice to have.

Should be possible to do this with <script> and <noscript> tags, so that
when there is no javascript it looks just like it does now.
And we need an option to disable generating the javascript.

Unfortunately I don't have time for this...

-- 
   Arthur pulls Pin out.  The MONK blesses the grenade as ...
ARTHUR:  (quietly) One, two, five ...
GALAHAD: Three, sir!
ARTHUR:  Three.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to