Source code comment line removal
-
Does anyone know of a script or tool to remove comments from two types of files: 1. ASP file with embedded Javascript & HTML 2. XSL file with embedded Javascript & HTML So basically it's removal of // Javascript style comments /* Javascript style comments */ ' VBScript (ASP) style comments A good script/tool would be one that strips all source code of comments. Then another script/tool that reapplies the comments. So that means storing the comments and line numbers in another file possibly.
-
Does anyone know of a script or tool to remove comments from two types of files: 1. ASP file with embedded Javascript & HTML 2. XSL file with embedded Javascript & HTML So basically it's removal of // Javascript style comments /* Javascript style comments */ ' VBScript (ASP) style comments A good script/tool would be one that strips all source code of comments. Then another script/tool that reapplies the comments. So that means storing the comments and line numbers in another file possibly.
Try RegEX - Regular Expressions for finding and removing. PraVeeN NinethSense.com/blog/