Automatically detect the indentation type from the file, could do with improving and of course, settings...