详解 SourceInisght 导入 python 语法文件

来源:互联网 发布:linux安装不了httpd 编辑:程序博客网 时间:2024/06/01 09:58

5.If you don't have a document type already created for the type oflanguage file, you will need to create one now. If you already have adocument type created, select it in the list and go to step 7.

6. Click the Add Type button to create a new document 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".

7. In the Parsingsection of the Document Options dialog box, select the newly importedlanguage in the language drop-down list. This is what associates yourdocument type with the custom language.

8. Click the Close button to close Document Options. Then click OK to close the Preferences dialog box.



1. 从  http://www.sourceinsight.com/public/languages/Python.CLF 下载Python 语法的配置文件。
2. 在source insight 中 选择 "option -> Preferences " ,选择  "languages" 页面。
3. 选择 "import" 按钮, 选择下载的 python.clf
4. 可以在语言列表中看到新加入的python
5. 选择 "Document Types" 按钮,打开文档选项对话框
6. 创建一个新的文档类型,文档名称 'python' , "file filter" 中输入 *.py
7. 在 "parsing" 处,选择python 语言
8. "close" 关闭文档选项对话框,确认"Preferences"对话框