On 2008-12-16, Bram Moolenaar wrote: > > > 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... Hmm, thanks anyway, I can wait :)
-- Regards, anhnmncb --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
