On Wed, 27 Oct 2010 17:16:59 +0100% Nick Treleaven <[email protected]> wrote:
> On Tue, 26 Oct 2010 12:14:25 +0400 > Eugene Arshinov <[email protected]> wrote: > > > > > For the present, I attach an updated patch which doesn't insert > > > > indentation after "short" HTML tags. > > > > > > OK, looks like a good solution. > > > > > > > Do I understand correctly that you think we don't need GUI > > preference? > > I think we could add a per-filetype indent mode option so it would be > easy to disable in case someone wanted to. The user could then set > auto-indent to basic for HTML. I assume it's necessary to give users an opportunity to control automatic indentation of tags (HTML) and braces (JS/PHP) independently. I suggest making the new "indent_mode" option a combination of flags, each of which control what indent feature will be _disabled_. That this, the default for any filetype will be 0 (all features enabled). For filetypes which aren't HTML users will add 1 to disable autoindentation. For HTML they will add 1 to disable JS/PHP autoindentation and 2 to disable tag autoindentation. I "inverse" the semantics of flags, so that when an indent feature is added it will be turned on by default. Maybe it's better to name this option "disable_indent" and use strings instead of numbers. For example, "disable_indent=braces,tags" for HTML would disable autoindentation completely. Any thoughts/suggestions? Best regards, Eugene. _______________________________________________ Geany-devel mailing list [email protected] http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
