guys urgently need a script to remove comments from a script
can't find anything like it
any ideas??
Forum topic · General Scripting
need help!!!
By Steve Partridge · 2016-09-17
Forum topic · General Scripting
By Steve Partridge · 2016-09-17
guys urgently need a script to remove comments from a script
can't find anything like it
any ideas??
Comments (5)
Comment policy
what kind of comment , is it /*..*/ or is it "-- line comment" ?
Hi fajar i have many line comments "--"
the problem is that these comments are at the end of lines
I have no idea how to remove them
.
use Notepad++. Open the script and remove all lines that starts with --. Then manually remove the /* */ comments.
thank you but this method is not suitable because the comments are at the end of lines
`
hey
this is only quick script to remove comments on end of line when they start with --
but if double dash is in string rest of line will be removed too
to detect strings and comments with /* */ in script is more difficult
try if this simple answer works for you