473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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

Feb 17 '06 #1
0 1240

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John Rajendran | last post by:
Hi there, I am planning to implement a Datagrid display for my XML data. XML data has <problem><id>1</descrption>something</description><id>2</descrption>somewhere</description></problem> These...
4
by: Michael Lang | last post by:
I need a simple way to parse comment lines from aspx (ASP.NET) files; in which comments are surounded by <%!-- and --%> So I created a simple regex: <%!--(?<val>.*)--%> With 'singleline'...
2
by: Steve | last post by:
Having only recently migrated across from VB6 to VB.NET I'm still unsure whether or not I should be making (heavy) use of the Microsoft.VisualBasic namespace in new applications. I've read a lot...
24
by: John Rivers | last post by:
ASPX which means ASPX pages, the code-behind concept, User Controls, Web Controls etc. is very poorly designed and makes it extremely hard to develop professional quality web applications. ASPX...
29
by: dbhbarton | last post by:
Had a thought that's grown on me. No idea if it's original or not- too inexperienced in programming- but I guess there's no harm floating it out there. Python wins big on readability, and...
3
by: LamSoft | last post by:
I am not going to write a aspx to connect a SQL Server... but it tries to connect the SQL Server... Some of the Code.. protected void LoginButton_Click(object sender, EventArgs e) { if...
4
by: minimaxG | last post by:
+ I has some trouble with many *.tmp in my_computer :mad: + I want to find and remover it (ALL) + I can't del them by del temp folder ,May be by + I want write a (Eg: Re_virus.exe) file that...
0
by: yuxuy501 | last post by:
Noadware.net - Spyware/Adware Remover http://zoneweb.freeweb7.com/noadware.html
1
by: =?Utf-8?B?dml0YWxvbw==?= | last post by:
Everytime I try to run my Windows Malicious Tool Remover program it tells m mrstub.exe is not a valid win32 application - when I go to MS help it says they don't have a solution for this yet????...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.