On Tue, 2 Nov 2010 23:28:43 +0300 Eugene Arshinov earshinov@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 property 'indent_tags'. By default (like all fields in GeanyFiletypePrivate) it is zero, but in global filetypes.{xml,html} I set it to true.
I changed the filetype property to xml_indent_tags also, I think it's clearer.
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 if the property is set.
BTW, should we set xml_indent_tags=true for PHP, Docbook filetypes?
Nick