Implemented comment styling based on the template