sourceInsight官网介绍及插入定制语言支持

sourceInsight官网介绍及插入定制语言支持

版本说明

版本作者日期备注
0.1ZY2019.6.4初稿

目录

一、sourceinsight的官网:

https://www.sourceinsight.com/

二、sourceinsight的下载页:

https://www.sourceinsight.com/download/

可以看到除了4.x和3.5的下载和lincense购买外,还可以找到custom language files和Sample Macro Files,也就是定制语言文件和宏文件,我们这里需要的就是定制语言文件里的lua语言文件。

三、定制语言下载页:

https://www.sourceinsight.com/download/custom-languages/

四、自定义语言使用方法

下面还有使用方法的教学,这里简单翻译一下:

自定义语言文件为非内置语言的源代码提供语法格式化和一些解析支持。

扩展名为.xclf的文件用于Source Insight version 4及更新版本。
扩展名为.clf的文件用于版本3.x。

要将自定义语言文件导入Source Insight:

  • 1、Select Options > Preferences. Click the Languages tab.

Options->Preferences。单击Languages选项卡。

在这里插入图片描述

  • 2、Click the Import button. Select and load the custom language file (extension .clf for v3, and .xclf for v4). You should now see the new language in the list of languages.

单击导入按钮。
选择并加载自定义语言文件(v3扩展名为.clf, v4扩展名为.xclf)。
您现在应该在语言列表中看到新语言。

只要文件没有错就会出现语言,比如这里的Lua:

在这里插入图片描述

  • 3、Click the File Types button to open the File Type Options dialog box.

单击“文件类型”按钮打开“文件类型选项”对话框。

  • 4、If you don’t have a file type already created for the type of language file, you will need to create one now. If you already have a file type created, select it in the list and go to step 7.

单击“文件类型”按钮打开“文件类型选项”对话框。
-如果您还没有为语言文件类型创建一个文件类型,那么现在就需要创建一个。
如果已经创建了文件类型,请在列表中选择它并转到步骤7。

在这里插入图片描述

  • 5、Click the Add Type button to create a new file type. Give it a name that describes the type of file. For example, “Ant File”. Click OK and then fill in the file filter text box with a wildcard. For example, “*.ant”.

单击Add Type按钮创建一个新的文件类型。给它一个描述文件类型的名称。例如,“Ant文件”。单击OK,然后用通配符填充文件筛选器文本框。例如,“* .ant”。(如上图)

  • 6、In the Parsing section of the File Type Options dialog box, select the newly imported language in the language drop-down list. This is what associates your file type with the custom language.

在“文件类型选项”对话框的“解析”部分中,在“语言”下拉列表中选择新导入的语言。这就是将文件类型与自定义语言关联起来的方法。(如上图)

  • 7、Click the Close button to close File Type Options. Then click OK to close the Preferences dialog box.

单击“关闭”按钮关闭文件类型选项。然后单击OK关闭Preferences对话框。

五、Lua.xclf

.xclf的文件需要自己把网页的内容复制下来然后保存为.xclf文件(要把网址中的第一行删掉),对于.clf文件可以直接下载下来。

原网址是这样的:

在这里插入图片描述

处理后生成的Lua.xclf:

链接:https://pan.baidu.com/s/1gUkrmx902F07AWPY4lFStA
提取码:9n5r

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

昵称系统有问题

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值