在SourceInsight中添加【.cc】和【.tcl】类型文件

          由于ns2 的源代码主要是用.cc和.tcl编写的,而SourceInsight默认并不支持【.cc】和【.tcl】文件,下面介绍如何在SourceInsight中添加【.cc】和【.tcl】类型文件。
 
(1)添加.cc文件
 
在SourceInsight选择【Options】 --> 【Document Options】--> 【Document Type】 内选择【C++ Source File】--> 在【File filter】添加【 ;*.cc】--> 点击【Close】。如下图示。

在SourceInsight中添加【.cc】和【.tcl】类型文件_第1张图片
 
(2)添加.tcl文件
 
1. 下载tcl语言软件包,下载地址:   http://www.sourceinsight.com/public/languages/TCL.CLF。
 
2. 在SourceInsight选择菜单【Options】 --> 【Preferences】--> 【Languages】--> 选择【Import】 --> 选择TCL语言软件包“TCL.CLF” -->在【Language】内选择【TCL】  --> 点击【Doc Types…】--> 【Document Options】--> 【Add Type…】 --> 输入【TCL Script File】作为文件类型名--> 在“File filter”内输入【*.tcl】--> 【Language】下拉框中选择 【TCL】--> 选择【Include when adding to projects】  -->【Close】。如下图示。

注:下图中步骤【2】与【3】之间选择语言包的过程未截图。

在SourceInsight中添加【.cc】和【.tcl】类型文件_第2张图片

在SourceInsight中添加【.cc】和【.tcl】类型文件_第3张图片

在SourceInsight中添加【.cc】和【.tcl】类型文件_第4张图片

在SourceInsight中添加【.cc】和【.tcl】类型文件_第5张图片

参考:《在SourceInsight添加.cc文件和.tcl文件》,  http://blog.sina.com.cn/s/blog_72eb2e9a0100timn.html

你可能感兴趣的:(Windows,编程相关,SourceInsight)