NCC Tools(never code counter tools) V1.0.1發布代碼-代碼統計工具
2024-08-26 00:15:51
供稿:網友
界面如下圖:把源代碼存為(hta)文件,因為hta文件沒有狀態欄,所以我這里建議大家存為html文件,這樣可以在狀態欄下看到
NCC掃描的進度,我這里把NCC的maxloop設置為3000,所以文件統計到3000的時候,會自動終止,以防文件夾中文件太多造成運行的負擔。
如果大家喜歡這樣的代碼,就請關注"Never Modules"
主要功能有-
1??勺约哼x擇文件夾,或者單個文件。
2。自己選擇文件后綴名進行統計
3。output information輸出的數據有:
文件個數,
文件的代碼字節數,
單詞個數,
代碼行數,
總代碼字節數
總代碼行數。
4??梢园汛a統計結果用SaveAs存為html或者txt文件。 代碼如下:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> NCC Tools - http://www.never-online.net </title>
<hta:application id="NCC"
applicationname="NCC application"
border="thin"
borderstyle="normal"
caption="yes"
icon="http://www.never-online.net/images/icon.ico"
maximizebutton="no"
minimizebutton="yes"
showintaskbar="no"
singleinstance="yes"
sysmenu="yes"
version="1.01"
windowState="normal"/>
<meta http-equiv="ImageToolbar" content="no" />
<meta name="author" content="BlueDestiny, never-online"/>
<meta name="keywords" content="never modules, Mozilla CSS, C#, .net, Refercence, BlueDestiny, never-online, www.never-online.net"/>
<meta name="description" content="BlueDestiny, never-online"/>
<meta name="title" content="never code counter (NCC) - http://www.never-online.net" />
<meta name="creator.name" content="Genius Lau, never-online, blueDestiny" />
<style type="text/css" media="all" title="Default">
body { background-color:buttonface; }
body,td,input { font:9pt tahoma; }
h1 { text-align:center; font-weight: bold; font-family: tahoma; font-size: 16pt; }
fieldset { height:300px; }
legend { font-weight: bolder; }
.btn { border-left:4px solid #444; border-top:1px solid #444; border-bottom:1px solid #444; border-right:1px solid #444; }