文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>How to add tcl support in Source Insight for NS2?

How to add tcl support in Source Insight for NS2?

时间:2008-04-16  来源:zcwuwei

How to add tcl support in Source Insight for NS2? 2007-10-17 09:06
How to add tcl support in Source Insight?

Author: Weiwei (fangvv at gmail dot com)

I use Source Insight (SI) to analyze the source code of NS-2. Unfortunately, I found it didn't support tcl/tk parsing in default application settings. So I tried to add the support to the tcl/tk code for SI.

First, choose Options->Preferences->Languages, add a new language called "TCL Language". Double click that new defined language line to edit its settings. In the opened "TCL Language Properties" dialogue , add "#" in the "Comments and Ranges" tab; click "keywords" button in the "Options" tab, add the tcl/tk keywords, you can just import the keywords from predefined files , the syntax is like the following:

elseif, Keyword

SYNTAX: the_keyword+", Keyword" [Return]

I add the keywords as those defined in Editplus tcl/tk user file. It can be downloaded from http://www.editplus.com/dn.cgi?tcltk8.zip

Then, choose Options->Document Options. In the opened dialogue, add a new type called "TCL Source File", the filter is :*.tcl. Remember to select the "Include when adding to projects" to make tcl file imported into your source code in SI next time. Choose the Language as "TCL Language" you defined in the above step, you can try to verify it by clicking the button "Language..".

After that, Re-import your NS-2 source code and check if the tcl files have been imported into the analysis project.

Any problem, email me:)
相关阅读 更多 +
排行榜 更多 +
我是班长去广告版下载

我是班长去广告版下载

模拟经营 下载
什么鸭小游戏安卓版下载

什么鸭小游戏安卓版下载

策略塔防 下载
极光影院官方最新版本2025下载

极光影院官方最新版本2025下载

趣味娱乐 下载