Hi Doug,
For a start, try copying filetypes.lua from /usr/share/geany to $HOME/.config/geany/filedefs, and uncommenting the indentation options (set them to tab width 2, I think that’s Lua style). Then when you type 'do' or 'function' or whatever and indent, every successive line will be at that indentation level.
Hope this helps,
James
On 09/11/13 19:08, Doug Darrow wrote:
I've been using Geany on Ubuntu 'Precise' 12.04 for a year (both 1.21 and now 1.23.1 since it came out). I'm no programmer ( far from it!) and I've only gotten my hands and fingers to work well enough, since my stroke, to have any competence at typing. The big thing I liked in Scite was its ability to automatically indent based on Lua rules. I can't even get that to work in Scite now. Is there any way to do that with Geany? Can I set it to indent such lines as 'for' or 'do' and, possibly, UNindent 'end' lines? I mean short of C coding. I've tried fiddling with all the settings in Preferences but I'm just not competent enough to make the auto indentation work for Lua. (It's a struggle just to make Lua do what I want)
Thanks for any help or trying to help. Doug _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users