[Geany] code folding for .txt files

Eugene Arshinov earshinov at xxxxx
Thu Nov 12 11:42:44 UTC 2009


On Thu, 12 Nov 2009 20:16:53 +0900
Hyoung-Ryul Kang <ohthere at gmail.com> wrote:

> Thank you for the answer. I understand that the way Geany find a
> folding point is to parse the syntax.
> 
> I wonder if Geany had an option to make a folding point *according to
> the indentation*. This will enable .txt files to be folded in a very
> sensible way. I also think this would not be technically challenging
> too much, since Geany already detects indentation fairly well.
> 
> Some editors like EditPlus (proprietary, www.editplus.com) have that
> option, and it is great to get a neat folded view, not only of the
> code, but also of the results of a program, which often have an
> arbitrary structure.
> 
> Furthermore, you don't even need a syntax file to fold a file of a
> new type, if you only indented it appropriately.
> 
> Maybe I should suggest this as a feature request.
> 
> HR Kang.

Hi. One day I wrote some code to achieve this. I don't think the
attached patch will be accepted (as it's dirty and ugly :-) ), but it
may be useful to someone. The patch is for r4409.

Best regards,
Eugene.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: geany.8.hierarchical-file-type.patch
Type: text/x-patch
Size: 7755 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20091112/63a9cd47/attachment.bin>


More information about the Users mailing list