Hello John,

I also use TextMate and the txt2tags bundle was made by me.

For txt2tags it's hard to make the automatic folding, because we don't
have a "end of section" mark, and TextMate needs to know the regular
expression for the start and the end of the blocks.

I can tell TextMate that sections begins in headlines, like =foo=, but
where they will end? They end in another =foo= instance or at the end
of the file. None of this work in TextMate.

        foldingStartMarker = '^= .* =$';
        foldingStopMarker = '^= .* =$';

I've tried this, but using the same regex for start/stop doesn't work.
I've tried also to make something as:

        foldingStopMarker = '\n\n\n\n';

So a workaround would be to have three blank lines before each
headline. but it seems that folding markers can't be multiline.

The only thing I've managed to get working, was to create a silly
end-of-section comment, like %end. Then you can make this rule:

        foldingStopMarker = '^%end$';

But you have to remember to put a %end comment at the end of every
topic of your .t2t file. That's not comfortable, but it's the only
solution I've found.

Anyway, I find the navigation menu at the window footer pretty handy,
and together with Ctrl-Shift-T, I don't miss folding at all.

Bye!








On Fri, Sep 18, 2009 at 07:02, John Plumridge <jonip...@googlemail.com> wrote:
> Hi Folk, the Geaney project looks good.  l Use Textmate, but I haven't been
> able to get the markup to automaticaly fold on headlines. I do it manually,
> to fold the sectoins, but these non-automatic foldings, tend to 'get lost'
> when passing files around.
> Perhaps someone has a solution?
> Anyway, is it worth migrating from Textmate to Geaney?
> John
>
>
> On 17 Sep 09, at 18:4807, Aurélio Jargas wrote:
>
> Thank you very much Eric! It's great for editing large documents.
> I've made a blog post about it, so more people will know about your
> creation.
> Bye!
>
> On Sun, Sep 6, 2009 at 19:31, Forgeot Eric <eforg...@yahoo.fr> wrote:
>
> There is now support for txt2tags into Geany:
> http://geany.svn.sourceforge.net/viewvc/geany/trunk/tagmanager/txt2tags.c?view=log
> It's only in the svn at the moment, but it will allow to use a nice tree to
> browse the headers into your txt2tags source code!
> For example:
> http://anamnese.online.fr/site2/esclinux/kde_geany_t2t.png
> In the future it should be possible to fold the headers like for the C
> language so it would be a killer feature for editing long structured texts:
> http://anamnese.online.fr/site2/esclinux/kde_geany_c.png
> But it require some programming skills I don't have, so if someone is
> interested in contributing to this project, please let me know!
>
>
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> txt2tags-list mailing list
> https://lists.sourceforge.net/lists/listinfo/txt2tags-list
>
>
>
> --
> Aurélio | www.aurelio.net | @oreio
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> txt2tags-list mailing list
> https://lists.sourceforge.net/lists/listinfo/txt2tags-list
>
> BoL ™ "LilyLakshmi Limited" UK Reg.Company No.06677294
>
> boL * botanical organic skin creams
> Miessence Worlds first and full range all organic certified body care
> My Home Page
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> txt2tags-list mailing list
> https://lists.sourceforge.net/lists/listinfo/txt2tags-list
>
>



-- 
Aurélio | www.aurelio.net | @oreio

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list

Reply via email to