Emphasize Some Comments - but not Dirty the Code

Posted by Jon Sandness on Programmers See other posts from Programmers or by Jon Sandness
Published on 2011-03-15T19:52:11Z Indexed on 2011/03/16 0:18 UTC
Read the original article Hit count: 431

Filed under:
|
|

I'm having trouble structuring my comments at the moment.

I have major sections of the code that, when scrolling through the document, I want to be able to see those stand out.

Examples:

This is a normal comment:

int money = 100; //start out with 100 money

-

This is a comment to emphasize a certain part of the code:

/****** Set up all the money ******/

But I don't like that this isn't very clean. Is there a standard way of setting up this type of a comment?

© Programmers or respective owner

Related posts about code-quality

Related posts about comments