[TxMt] Puthon folding idea (not really mine)

Alexey Blinov nilcolor at gmail.com
Tue Dec 11 08:59:12 UTC 2007


Oh! And BTW there a good idea about naming folding... i.e.
# Super fold #{{{
...
# }}}
folds to
# Super fold...

IMO its nice. Isn't it?

On Dec 11, 2007 11:38 AM, Alexey Blinov <nilcolor at gmail.com> wrote:

> Hi!
> I like a code folding but simce i write Python in TM - code folding
> doesn't work right... Sometimes its ok but some - weird.
> So just stop fold code. Its fine but... Some time ago i read one article
> about Django and find some interesting idea in that article - code folding
> markers for vim.
> Here is a short description:
> we need to add new folding rule to fold code based on that pair of markers
> #{{{
> def test
>     ...
> #}}}
> add regexp for folding and some macros/snippets doesn't hard (i hope ;)
> and we will have working solution for Python (or any other lang) right now.
> I mean in 1.5+ version ;-)
>
> Link to full story about folding in vim: http://www.amitu.com/blog/2007/july/vim-python-code-folding-and-my-vimrc/
>
> Any ideas? I can't do it myself yet but i hope someone will...
>
> Alexey
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20071211/0d9748d2/attachment.html>


More information about the textmate mailing list