ace editor formatting text correctly