Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-11-11 Thread Nick Treleaven
On Wed, 10 Nov 2010 22:44:43 +0300 Eugene Arshinov earshi...@gmail.com wrote: I changed the code slightly to check whether the document uses the HTML/XML lexer rather than those filetypes, and to always read the property. This should allow other filetypes that have XML syntax to work also

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-11-10 Thread Nick Treleaven
On Tue, 2 Nov 2010 23:28:43 +0300 Eugene Arshinov earshi...@gmail.com wrote: I think just add a html_tag_autoindentation field to GeanyFiletypePrivate and use that. Okay, the patch is attached. Thanks, applied (with some changes). I named the field 'xml_indent_tags' and the filetype

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-11-10 Thread Eugene Arshinov
On Wed, 10 Nov 2010 17:51:18 +% Nick Treleaven nick.trelea...@btinternet.com wrote: On Tue, 2 Nov 2010 23:28:43 +0300 Eugene Arshinov earshi...@gmail.com wrote: I think just add a html_tag_autoindentation field to GeanyFiletypePrivate and use that. Okay, the patch is

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-11-02 Thread Eugene Arshinov
On Tue, 2 Nov 2010 15:13:12 +% Nick Treleaven nick.trelea...@btinternet.com wrote: On Fri, 29 Oct 2010 21:56:53 +0400 Eugene Arshinov earshi...@gmail.com wrote: I wasn't thinking of brace autoindentation. In that case perhaps it's simpler to add a HTML-specific setting to disable

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-10-29 Thread Nick Treleaven
On Thu, 28 Oct 2010 23:27:53 +0400 Eugene Arshinov earshi...@gmail.com wrote: 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

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-10-29 Thread Eugene Arshinov
On Fri, 29 Oct 2010 15:31:37 +0100% Nick Treleaven nick.trelea...@btinternet.com wrote: On Thu, 28 Oct 2010 23:27:53 +0400 Eugene Arshinov earshi...@gmail.com wrote: 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

Re: [Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-10-28 Thread Eugene Arshinov
On Wed, 27 Oct 2010 17:16:59 +0100% Nick Treleaven nick.trelea...@btinternet.com wrote: On Tue, 26 Oct 2010 12:14:25 +0400 Eugene Arshinov earshi...@gmail.com wrote: For the present, I attach an updated patch which doesn't insert indentation after short HTML tags. OK, looks

[Geany-devel] HTML/XML autoindentation - Re: [PATCH] Some editor/snippets/keybindings enhancements

2010-10-25 Thread Nick Treleaven
On Fri, 8 Oct 2010 06:03:33 +0400 Eugene Arshinov earshi...@gmail.com wrote: The drawback of the third patch is that it's not completed. If user likes to leave HTML tags like br unclosed, she would be disturbed by automatic indentation caused by my patch, so a check box in