inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Dec 9, 2013 17:20:43 GMT -8
So, after having to re-write the Gold Shop code twice now because I either did things in such a confusing way, or just plain didn't know what I was doing when I wrote the thing, I decided to comment almost everything so I could understand what I was doing at the time I wrote it. However, this makes the code very bulky (and large), and since ProBoards discourages us sending them obfuscated code (which is what most programs that remove comments do), I need something that will simply remove the comments and not change anything else. Any suggestions?
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Dec 10, 2013 9:12:05 GMT -8
Write a script that will run it through a regex?
Edit:
Something like this should do it:
s/\/\/.*\n//mg;
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Dec 10, 2013 18:05:17 GMT -8
I actually found a way to do it with a batch script earlier today but wasn't able to remove my post at the time. Thanks for the suggestion though.
|
|