Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > ASP, ASPX, PHP, JS, XSL comment remover for web applications

Reply
Thread Tools

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

 
 
KevinGPO
Guest
Posts: n/a
 
      02-17-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple applications/multiple web.configs: how to structure a big collection of (seemingly) nested web applications? ASP .Net 3 06-14-2007 09:25 AM
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
? ELSE Conditional Comment / Using Conditional Comments Inside Other Tags To Comment Out Attributes Alec S. HTML 10 04-16-2005 02:21 AM
web applications versus. web portal applications John Davis ASP General 0 08-21-2003 12:11 AM
web applications versus. web portal applications John Davis ASP .Net 0 08-21-2003 12:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57