Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
有没有批量去除源码中注释的好工具
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matrix Chou  
View profile   Translate to Translated (View Original)
 More options Nov 12, 4:00 am
From: Matrix Chou <zhouguang...@gmail.com>
Date: Thu, 12 Nov 2009 17:00:28 +0800
Local: Thurs, Nov 12 2009 4:00 am
Subject: 有没有批量去除源码中注释的好工具

有没有批量去除源码中注释的好工具, For C and CPP 的。可以删除一个工程下面所有源码文件中的注释

Thanks

--
Chou Kuang-Kit
Skype : choukuangjay
MSN : zhouguangjie[at]msn.com
Blog : http://zhouguangjie.cn
Online License Key Discount Shop http://www.codeshop.info
Time Zone: GMT+8:00


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tm 闲耘  
View profile   Translate to Translated (View Original)
 More options Nov 12, 4:20 am
From: 闲耘(tm) <hotoo...@gmail.com>
Date: Thu, 12 Nov 2009 17:20:10 +0800
Local: Thurs, Nov 12 2009 4:20 am
Subject: Re: [Vim-cn:3120] 有没有批量去除源码中注释的好工具

只听说脚本语言为了减少网络流量压缩代码而去掉注释的,c/cpp编译后就没那些多余的东西了,压缩代码本身好像没多大意义。

另外,NERD_comments是一个好工具,但不能满足你的要求。
--
闲耘(tm) (@hotoo, xianyun.org)
Sent from Hangzhou, 33, China

2009/11/12 Matrix Chou <zhouguang...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
alex  
View profile   Translate to Translated (View Original)
 More options Nov 12, 4:16 am
From: alex <xjde...@gmail.com>
Date: Thu, 12 Nov 2009 17:16:15 +0800
Local: Thurs, Nov 12 2009 4:16 am
Subject: Re: [Vim-cn:3120] 有没有批量去除源码中注释的好工具

On Thu, Nov 12, 2009 at 05:00:28PM +0800, Matrix Chou wrote:
>有没有批量去除源码中注释的好工具, For C and CPP 的。可以删除一个工程下面所有源码文件中的注释

可以自己写一个简单的程序来解决这个问题嘛. :)


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yuhuibear  
View profile   Translate to Translated (View Original)
 More options Nov 12, 9:18 pm
From: yuhuibear <yuhuib...@gmail.com>
Date: Thu, 12 Nov 2009 18:18:46 -0800 (PST)
Local: Thurs, Nov 12 2009 9:18 pm
Subject: Re: 有没有批量去除源码中注释的好工具
似乎简单的正则替换都可以完成。

On 11月12日, 下午5时00分, Matrix Chou <zhouguang...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Asins  
View profile   Translate to Translated (View Original)
 More options Nov 13, 7:06 am
From: Asins <lwky...@gmail.com>
Date: Fri, 13 Nov 2009 20:06:07 +0800
Local: Fri, Nov 13 2009 7:06 am
Subject: Re: [Vim-cn:3129] Re: 有没有批量去除源码中注释的好工具

NERD_comments不错,NERD_tree也不错,都在用,呵呵

2009/11/13 yuhuibear <yuhuib...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yongwei Wu  
View profile   Translate to Translated (View Original)
 More options Nov 14, 4:42 am
From: Yongwei Wu <wuyong...@gmail.com>
Date: Sat, 14 Nov 2009 17:42:51 +0800
Local: Sat, Nov 14 2009 4:42 am
Subject: Re: [Vim-cn:3120] 有没有批量去除源码中注释的好工具
去掉所有的"//"注释:":%s!\s*//.*!!"

去掉所有的"/* */"注释:":%s!\s*/\*\_.\{-}\*/\s*! !g"

2009/11/12 Matrix Chou <zhouguang...@gmail.com>:

> 有没有批量去除源码中注释的好工具, For C and CPP 的。可以删除一个工程下面所有源码文件中的注释

> Thanks

> --
> Chou Kuang-Kit
> Skype : choukuangjay
> MSN : zhouguangjie[at]msn.com
> Blog : http://zhouguangjie.cn
> Online License Key Discount Shop http://www.codeshop.info
> Time Zone: GMT+8:00

--
Wu Yongwei
URL: http://wyw.dcweb.cn/

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google