Framework Assistant request

BlitzMax Forums/BlitzMax Programming/Framework Assistant request

JoshK(Posted 2006) [#1]
Could the author add a line counter, so I can see how many lines my complete source code is?


WendellM(Posted 2006) [#2]
In case it would help anyone (Jim Brown if he wants to add it, Leadwerks if he doesn't, and lurkers in any case), Yan/Papa Lazarou posted code for counting lines in this thread: http://www.blitzbasic.com/Community/posts.php?topic=59845#667593


EOF(Posted 2006) [#3]
Hi Josh,
I'll add that in.

What about remarks or blocks or Rem/End Rem code?
Do you count that as part of the source code line count?


JazzieB(Posted 2006) [#4]
Could you do both? One that counts lines of code only, missing out any comments and blank lines, and another that just counts everything.


EOF(Posted 2006) [#5]
Framework Assistant updated. The HTML results will now display:

* total number of lines in code (inc. remarks/blank lines)
* total number of source code lines only


SebHoll(Posted 2006) [#6]
Can I also make a suggestion - that Framework Assistant defaults it's BlitzMax Path on Windows to C:\Program Files\BlitzMax. 9/10 people use that path and the 1/10 that don't can change it. FA is great but this would round it off nicely!

Cheers

Seb


popcade(Posted 2006) [#7]
You can use "." as root directory(replace in fa.ini) if you unzip FA to your BlitzMax directory, this is handy for porting it on portable disk drives.


EOF(Posted 2006) [#8]
Seb,
I'll see to that too. Good idea.

Mac/Linux users:
Whats the default installation folder (if any) for BlitzMax on either of these platforms?


Difference(Posted 2006) [#9]
U should use something like SHGetSpecialFolderLocation() instead


JoshK(Posted 2007) [#10]
Awesome! Thanks.

I managed to break the line counter with my main source code:

Including remarks/blank lines: 176
Source code only: 179

The code is 300 kb, so I think it is more than 180 lines.