avoid flickering while editing unclosed php block