Author Topic: Counting Lines of Code  (Read 18798 times)

alicecbrown

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Counting Lines of Code
« on: February 24, 2009, 07:57:41 PM »
I know I must have known this at one time, but I've forgotten:
I want to know
1. gross no. of lines in my project
2. no. of lines of executable source code without comments or spaces
3. no. of lines of comments
 ???


The help they give is no help at all.

Tim Kemp

  • Senior Community Member
  • Posts: 546
  • Hero Points: 92
Re: Counting Lines of Code
« Reply #1 on: March 16, 2009, 07:21:05 PM »
The section of the help that you are seeing is on writing in the macro language.  You can get your #2 from this program with no modifications.  Just:
  • download the file, "linecount.e" from the SlickEdit website, http://www.slickedit.com/content/view/440/80/
  • go to the Macro menu in SlickEdit, select "Load Module..." and load linecount.e
  • go to the command line by pressing ESC and enter linecount.

A new document will open.  The line count for the whole project will at the top along with the line count for each of the files.  It worked great for me.  To get your #1 and #3 would take minor modifications.  The program is well documented and in particular the blank line and comment removal parts are quite clear.

kurtcopley

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Counting Lines of Code
« Reply #2 on: August 12, 2014, 10:10:03 PM »

Tim Kemp

  • Senior Community Member
  • Posts: 546
  • Hero Points: 92
Re: Counting Lines of Code
« Reply #3 on: August 13, 2014, 12:19:06 PM »
Thanks kurtcopley. I wonder what happened to the page I originally linked to.