ASP, ASPX, PHP, JS, XSL comment remover for web applications

K

KevinGPO

Am trying to write a program when given a folder name path, it will
traverse/recursively go through the whole folder & sub-folders, opening
each file.

How can I go about this in C++?


I want to write a ASP, ASPX, PHP, JS, XSL comment remover for web
applications using state machine. I have found a C/C++ comment remover
and will modify it so that it will take into account of which file type
it has opened, and apply the scope rule (see table below).

Refs (C/C++ comments only):
http://home.att.net/~jackklein/c/code/comments.html


Comment style File Scope

VBScript ' (apostrophe) .asp <% %>
HTML <!-- --> .asp all
HTML <!-- --> .xsl all
C/C++ // /* */ .asp <script </script
C/C++ // /* */ .xsl <script </script
C/C++ // /* */ .js all
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top