[Geany] Partially solved: Folding with indentation

Dominic Hopf dmaphy at xxxxx
Sat Nov 14 02:01:58 UTC 2009


Am Freitag, den 13.11.2009, 21:55 +0900 schrieb Hyoung-Ryul Kang:
> Dear all,
> 
> Thanks to the many helpful suggestions, especially based on Mr. Randy
> Kramer's, I made one work-around in Notepad++, which is also based on
> Scintilla.
> 
> The steps are as following:
> 
> 1. Settings -> Preferences -> New Document/Default Directory ->
> Default language -> select "Python"
> ( I chose Python because it is the language that I don't often use,
> while it supports folding based on indentation)
> 
> 2. Settings -> Style configurator -> Lauguage: select Python -> User
> ext.: input "txt"
> 
> (I found that making an adjustment like this is a bit more complicated
> in Geany, unlike Notepad++. Especially I couldn't find a way to select
> a default language. Could someone tell me how I can do that?)#
You can edit your ~/.config/geany/filetype_extensions.conf accordingly
to your wish. E.g. add *.txt as Python file.

> Also, although this works perfect for me, this is only a work-around,
> and poses several problem. For example, if you want to use
> auto-completion for 'real' Python code, you will be forced to see the
> same auto-completion list pops up even when you are writing a plain
> text.
> 
> Since folding with indentation 'right from the start' will be a
> qualitatively different experience to novices to Geany, I still hope
> that this feature could be included as a default, or an option that
> can be selected from the GUI.
> 
> .txt lexer, combined with a capacity to select a default language (in
> this case, 'simple text (.txt)' ), will be an answer.
> 
> I will try Eugene's patch and post again.
> 
> Best regards,
> HR Kang.
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany

-- 
Dominic Hopf <dmaphy at gmail.com>

http://dominichopf.de/

Key Fingerprint:
A7DF C4FC 07AE 4DDC 5CA0 BD93 AAB0 6019 CA7D 868D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.geany.org/pipermail/users/attachments/20091114/0edf410c/attachment.pgp>


More information about the Users mailing list