autoformat comments when modifying text