Added new features to the auto close xml tags function, and also fixed a wrongly committed code that broke the auto-detect.