SlickEdit Community

General => General Programming => Topic started by: alicecbrown on February 24, 2009, 07:57:41 pm

Title: Counting Lines of Code
Post by: alicecbrown 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.
Title: Re: Counting Lines of Code
Post by: Tim Kemp 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:

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.
Title: Re: Counting Lines of Code
Post by: kurtcopley on August 12, 2014, 10:10:03 pm
The direct link for the file is http://www.slickedit.com/images/stories/support/linecount.e (http://www.slickedit.com/images/stories/support/linecount.e):
Title: Re: Counting Lines of Code
Post by: Tim Kemp on August 13, 2014, 12:19:06 pm
Thanks kurtcopley. I wonder what happened to the page I originally linked to.