Ported AutoFormat plugin