SlickEdit Community
General => General Programming => Topic started 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.
-
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/ (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.
-
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):
-
Thanks kurtcopley. I wonder what happened to the page I originally linked to.