Comments in Program

Post your requests and ideas on the future development of mikroC PRO for PIC.
Post Reply
Author
Message
HowardJ
Posts: 79
Joined: 31 Jan 2010 04:44

Comments in Program

#1 Post by HowardJ » 01 Jun 2017 03:19

We all know that comments are an essential part of the program we have written.
I have looked at "Active Comments" and decided not to use it for various reasons, but I am sure that many like it.

If a comment is on the same line as a piece of code, it takes up no extra screen space. i.e. following imaginary code;

TMR0L = CalcResult; // Load Timer 0 with the result of the calculation.

But, if there is a bit of a story to it, then the comments may take up more than one line, perhaps several. i.e.

TMR0L = CalcResult; // Load Timer 0 with the result of the calculation.
/*
The calculation result can be a different result, depending on the other variables used at the time.
Take care that these variables are correctly used, and not the wrong variables.
Note that the result depends on the scaling of the timer when the calculation occurred.
*/

Code folding is available. The code between two paired {} can be reduced to one line or hidden.
What if a few lines of comments, between a pair of /* */ could also be hidden the same way?
This could reduce the scrolling needed to see the code in our program.

Yours to look at or not,
Howard

User avatar
dusan.poluga
mikroElektronika team
Posts: 780
Joined: 02 Feb 2017 14:21

Re: Comments in Program

#2 Post by dusan.poluga » 01 Jun 2017 15:18

Hi,

Comment folding is currently unavailable in our compilers.
I agree that it would be a great feature to implement.
Thank you for your suggestion. I will report it to our developers.

Best Regards,
Dusan Poluga.

Post Reply

Return to “mikroC PRO for PIC Wish List”