<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 8 January 2014 22:13, Maximilian Krautloher <span dir="ltr"><<a href="mailto:kmax@posteo.de" target="_blank">kmax@posteo.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi all,<br>
<br>
I am a huge fan of geany and I am using it all the time, especially<br>
for creating latex documents.<br>
<br>
I would love to be able to define code folding blocks of my own, but<br>
found no online resource that could point me into the right direction.<br></blockquote><div><br></div><div>Folding is defined in C++ code (in file scintilla/LexLatex.cxx).  At a quick glance it looks to be based on document structure, "part", "chapter", "section", "subsection",<span style="white-space:pre"> </span>"subsubsection", "paragraph", "subparagraph".</div>
<div><br></div><div>You would have to modify that code to change where the folding occurred.</div><div><br></div><div>Cheers</div><div>Lex</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Can you please help me?<br>
<br>
Below you'll find one of my use-cases.<br>
<br>
Cheers, Max<br>
<br>
<br>
<br>
<br>
In a document I defined some equations, and via the latex-package<br>
'catchfilebetweentags' I can read them into the tex-file. It would be<br>
awesome if everything between tags was foldable...<br>
<br>
%<*eq.1><br>
        \begin{align}<br>
            Some equation<br>
        \label{eq:divergence.phase-profile.estimation}<br>
        \end{align}<br>
%</eq.1><br>
%<*eq.2><br>
        \begin{align}<br>
            Some other equation<br>
        \label{eq:divergence.phase-profile.estimation}<br>
        \end{align}<br>
%</eq.2><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>