您的位置:首页 > 编程语言

源代码统计工具-更新2.4.91.2-支持对5种新的类型的代码的统计

2009-08-20 16:21 369 查看
最近,网友提出了一些新的文件类型,确实是源代码统计工具(SourceCounter)不支持的代码类型。

今天有时间就写了几行代码,增加上了。有感兴趣的朋友可以下试用一下。

-
by Boom 2009-8-19





下面是网友的邮件。

------

你好:

如何配置,使得SourceCounter能统计.xml文件、.properties文件?

.xml文件的注释不区分单行还是多行,注释开始字符为:<!--,结束字符为:-->

.properties文件的注释仅有单行,注释字符为:#

我尝试修改rules.xml文件,添加:

<rule>

<extension>

<ruletype>XML</ruletype>

<desc>XML
file.</desc>

<name>.xml</name>

</extension>

<multi-line-comment-end><!--</multi-line-comment-end>

<multi-line-comment-begin>--></multi-line-comment-begin>

<single-line-comment></single-line-comment>

<desc>XML
source style</desc>

<type>XML</type>

</rule>

但是,运行异常。

谢谢。

------

END
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: