Support language switching for HTML editor