added closetag to autoclose html tags