Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Source code comment line removal

Source code comment line removal

Scheduled Pinned Locked Moved Web Development
javascripthtmlhardwaretoolsxml
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kevingpo
    wrote on last edited by
    #1

    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.

    _ 1 Reply Last reply
    0
    • K kevingpo

      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.

      _ Offline
      _ Offline
      _NinethSense_
      wrote on last edited by
      #2

      Try RegEX - Regular Expressions for finding and removing. PraVeeN NinethSense.com/blog/

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups