integrated formatting for the comment class