源代码统计工具-更新2.4.91.2-支持对5种新的类型的代码的统计
发布日期:2021-05-06 17:25:28 浏览次数:20 分类:原创文章

本文共 601 字,大约阅读时间需要 2 分钟。

最近,网友提出了一些新的文件类型,确实是源代码统计工具(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>&lt;!--</multi-line-comment-end>
    <multi-line-comment-begin>--&gt;</multi-line-comment-begin>
    <single-line-comment></single-line-comment>
    <desc>XML source style</desc>
    <type>XML</type>
  </rule>

但是,运行异常。

谢谢。
------
END
上一篇:源代码统计工具(SourceCounter) - 使用说明
下一篇:源代码统计工具(SourceCounter) - 2.4.84.0版

发表评论

最新留言

关注你微信了!
[***.104.42.241]2025年03月30日 17时50分38秒