This is a discussion on About DREAMWEAVER within the PHP General forums, part of the PHP Programming Forums category; I'm trying to get rid of all the comments that are in a different language in dreamweaver. Anyone know ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm trying to get rid of all the comments that are in a different language
in dreamweaver. Anyone know how to do that automatically? I have like 1000 php files with full of comments in different language. I do not intend on translating them or doing anything with em, I just wanna get rid of them just like that. Maybe regular expressions will do? dunno. I'll appreciate any comment. thanks |
|
|||
|
On Thu, 2007-07-05 at 11:52 -0700, Kelvin Park wrote:
> I'm trying to get rid of all the comments that are in a different language > in dreamweaver. > Anyone know how to do that automatically? I have like 1000 php files with > full of comments in different language. I do not intend on translating them > or doing anything with em, I just wanna get rid of them just like that. > Maybe regular expressions will do? dunno. I'll appreciate any comment. > thanks In linux you can do something like: rm `grep -irnE "regex" .` Cheers, Rob. -- ..------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' |
|
|||
|
There is a "Find and Replace" function in Dreamweaver, but it is very
specific and will only find specific words/tags. If these comments are from outside of Dreamweaver and it does not recognize them, then it is probably interpreting them as basic HTML text. And as such there would be no way for it to know where your comment ended and the code you want to be begins. Something a little faster but not your ideal solution would be to use the Find function. This will build a list of all the instances of your comment code, for instance if you start off all your comments with //. Then you can double click on the result and it will take you to that line, then just delete the line. On 7/5/07, Kelvin Park <kelvinpark86@gmail.com> wrote: > > I'm trying to get rid of all the comments that are in a different language > in dreamweaver. > Anyone know how to do that automatically? I have like 1000 php files with > full of comments in different language. I do not intend on translating > them > or doing anything with em, I just wanna get rid of them just like that. > Maybe regular expressions will do? dunno. I'll appreciate any comment. > thanks > |
|
|||
|
Hi,
I have built a server program. This program collects the data from the user. In the meantime, I have written another program to do housekeeping work: process user's data, send an alert email and delete old files. How can I ensure the housekeeping program run 24/7? If the server is rebooted, how to make this housekeeping program automatically start? Thanks. Scott --------------------------------- Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. |
|
|||
|
scott flemming wrote:
> Hi, > > I have built a server program. This program collects the data from the user. > > In the meantime, I have written another program to do housekeeping work: > process user's data, send an alert email and delete old files. > > How can I ensure the housekeeping program run 24/7? > If the server is rebooted, how to make this housekeeping program automatically start? Depends on the operating system. However, this has nothing to do with PHP so you really ought to be asking on a more appropriate list. -Stut -- http://stut.net/ |