Hi all,
I am a huge fan of geany and I am using it all the time, especially for creating latex documents.
I would love to be able to define code folding blocks of my own, but found no online resource that could point me into the right direction.
Can you please help me?
Below you'll find one of my use-cases.
Cheers, Max
In a document I defined some equations, and via the latex-package 'catchfilebetweentags' I can read them into the tex-file. It would be awesome if everything between tags was foldable...
%<*eq.1> \begin{align} Some equation \label{eq:divergence.phase-profile.estimation} \end{align} %</eq.1> %<*eq.2> \begin{align} Some other equation \label{eq:divergence.phase-profile.estimation} \end{align} %</eq.2>
On 8 January 2014 22:13, Maximilian Krautloher kmax@posteo.de wrote:
Hi all,
I am a huge fan of geany and I am using it all the time, especially for creating latex documents.
I would love to be able to define code folding blocks of my own, but found no online resource that could point me into the right direction.
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", "subsubsection", "paragraph", "subparagraph".
You would have to modify that code to change where the folding occurred.
Cheers Lex
Can you please help me?
Below you'll find one of my use-cases.
Cheers, Max
In a document I defined some equations, and via the latex-package 'catchfilebetweentags' I can read them into the tex-file. It would be awesome if everything between tags was foldable...
%<*eq.1> \begin{align} Some equation \label{eq:divergence.phase-profile.estimation} \end{align} %</eq.1> %<*eq.2> \begin{align} Some other equation \label{eq:divergence.phase-profile.estimation} \end{align} %</eq.2> _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On 14-01-08 03:13 AM, Maximilian Krautloher wrote:
Hi all,
I am a huge fan of geany and I am using it all the time, especially for creating latex documents.
I would love to be able to define code folding blocks of my own, but found no online resource that could point me into the right direction.
Can you please help me?
You can probably get an effect similar to explicit fold points that are supported by the C lexer with a hack like the following, for opening fold point:
\iffalse \begin \fi
And for closing:
\iffalse \end \fi
However I don't really know LaTeX so I'm not sure that's valid at all, nor did I test it outside of trying it in Geany.
Cheers, Matthew Brush