I'm with you on that! I agree that a scoring script/function is a great idea. I just think that we need to make sure that the rules regarding what syntax is counted follows common sense.
Obviously, having extra spaces where they are not needed is done strictly for readability, but some spaces are still necessary for scripts to function properly.
Examples:
code:
If $hello = "hi, how are you?" $yes = 1 Endif
Cannot be shortened to:
code:
If$hello="hi,howareyou?"$yes=1Endif
However,
code:
$a = $a + 1
can be shortened to:
code:
$a=$a+1
I suppose my point is that KiXtart code needs spaces and carriage returns in some cases and in other cases does not. As such, should these be counted?
I feel that definitely ALL characters in quotes should be counted. As for counting which spaces are necessary and which are not, that is probably not very easy to do.. that's why I suggested counting all spaces not at the beginning or end of the line. If this sounds like it is making things too complex, then it's not really a big deal. Any further thoughts?
Brian