Le 17/01/2013 21:28, Lex Trotman a écrit :
On 17 January 2013 23:02, Sayth Renshaw flebber.crue@gmail.com wrote:
Hi
[...]
Not sure if I have missed something Ruby specific
Hi,
Well, sort of, or rather Geany has missed something, Ruby specific support for indenting :)
Geany autoindent is almost language independent, it knows how to:
- go to the same indent as last line
- indent and unindent on { and }
- as a special case only, indent on : in Python
None of these will work for Ruby IIUC.
What it needs is for someone to specify the algorithm, and to provide a plugin that implements it (such language specific stuff shouldn't be in core)
No, I think that what's needed is a configurable indentation thing, like what Jiří and I somewhat started at different times, but didn't finish for some reasons. I (or somebody else ;)) should get back on that subject and try to get something working for real, Geany's auto-indenting is useless in most non-brace language (but Python as you noted), which is sad.
Cheers, Colomban